.docs-footer {
    position: relative;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.88);
    padding-top: 32px;
    border-top: 4px solid rgb(255, 106, 36);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.docs-footer a {
    color: inherit;
    text-decoration: none;
}

.docs-footer a:hover,
.docs-footer a:focus-visible,
.docs-footer button:hover,
.docs-footer button:focus-visible {
    color: #fff;
}

.docs-footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 32px;
}

.docs-footer-top__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.docs-footer-brand {
    max-width: 320px;
}

.docs-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
}

.docs-footer-logo-img {
    display: block;
    width: 150px;
    height: auto;
    filter: brightness(10);
}

.docs-footer-tagline {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.docs-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.docs-footer-action {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: inherit;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.docs-footer-action--primary {
    background: rgb(255, 106, 36);
    border-color: rgb(255, 106, 36);
    color: #0f172a;
}

.docs-footer-action--primary:hover,
.docs-footer-action--primary:focus-visible {
    background: rgb(255, 126, 60);
    border-color: rgb(255, 126, 60);
    color: #0f172a;
}

.docs-footer-main {
    padding: 40px 0 48px;
}

.docs-footer-main__container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.docs-footer-columns {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-footer-column__title {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.docs-footer-contact {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.docs-footer-contact__item {
    margin: 0;
}

.docs-footer-contact__item dt {
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
}

.docs-footer-contact__item dd {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.5;
}

.docs-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.docs-footer-list--two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

.docs-footer-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.docs-footer-link::before {
    content: '→';
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.docs-footer-link:hover::before,
.docs-footer-link:focus-visible::before,
.docs-footer-link.is-active::before {
    opacity: 1;
    transform: translateX(0);
}

.docs-footer-link.is-active {
    color: rgb(255, 177, 120);
    font-weight: 600;
}

.docs-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
}

.docs-footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.docs-footer-text-button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

.docs-footer-text-button + .docs-footer-text-button {
    margin-left: 18px;
}

.docs-footer-text-button::after,
.docs-footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.32);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.docs-footer-text-button:hover::after,
.docs-footer-text-button:focus-visible::after,
.docs-footer-link:hover::after,
.docs-footer-link:focus-visible::after {
    transform: scaleX(1);
}

.docs-footer-backtotop {
    position: fixed;
    bottom: 96px;
    right: 32px;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    z-index: 50;
}

.docs-footer-backtotop.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Maintenance page layout */
body.page-maintenance {
    --page-maintenance-footer-offset: clamp(120px, 26vh, 320px);
}

body.page-maintenance main {
    min-height: 100vh;
}

body.page-maintenance footer.docs-footer {
    margin-top: var(--page-maintenance-footer-offset);
}

@media (max-width: 1024px) {
    .docs-footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docs-footer-list--two-column {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .docs-footer {
        padding-top: 24px;
    }

    .docs-footer-top {
        padding-bottom: 24px;
    }

    .docs-footer-top__container {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-footer-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .docs-footer-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .docs-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-footer-text-button + .docs-footer-text-button {
        margin-left: 0;
        margin-top: 6px;
    }
}

@media (max-width: 560px) {
    .docs-footer-backtotop {
        right: 16px;
        bottom: 72px;
        padding: 10px 16px;
    }
}

