/* Site footer — main homepage (index.html) only */
.site-footer {
    --sf-navy: #0a0e27;
    --sf-navy-soft: #121c3d;
    --sf-gold: #c4a35a;
    --sf-gold-light: #e6d4a8;
    --sf-cyan: #00d4ff;
    --sf-text: rgba(255, 255, 255, 0.88);
    --sf-muted: rgba(255, 255, 255, 0.62);
    --sf-faint: rgba(255, 255, 255, 0.42);
    position: relative;
    z-index: 2;
    margin-top: auto;
    background: linear-gradient(180deg, var(--sf-navy-soft) 0%, var(--sf-navy) 100%);
    color: var(--sf-text);
    border-top: 1px solid rgba(196, 163, 90, 0.22);
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sf-gold) 20%, var(--sf-cyan) 50%, var(--sf-gold) 80%, transparent);
    opacity: 0.65;
    pointer-events: none;
}

.site-footer__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 32px) clamp(24px, 4vw, 32px);
}

.site-footer--compact .site-footer__inner {
    padding: 20px clamp(16px, 4vw, 24px) calc(18px + env(safe-area-inset-bottom));
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 32px;
    margin-bottom: clamp(24px, 4vw, 32px);
}

.site-footer__brand {
    flex: 1 1 220px;
    max-width: 360px;
}

.site-footer__logo-link {
    display: inline-block;
    margin-bottom: 12px;
    line-height: 0;
}

.site-footer__logo {
    width: clamp(160px, 22vw, 220px);
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.site-footer__tagline {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--sf-muted);
    font-weight: 500;
}

.site-footer__privacy-note {
    margin: 10px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--sf-gold-light);
    font-weight: 600;
}

.site-footer__grid {
    flex: 2 1 320px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px 28px;
}

.site-footer__col-title {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sf-gold);
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer__link,
.site-footer__link-btn {
    color: var(--sf-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.site-footer__link:hover,
.site-footer__link-btn:hover,
.site-footer__link:focus-visible,
.site-footer__link-btn:focus-visible {
    color: var(--sf-cyan);
    outline: none;
}

.site-footer__disclaimer {
    margin: 0 0 clamp(18px, 3vw, 22px);
    padding-top: clamp(18px, 3vw, 22px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    line-height: 1.55;
    color: var(--sf-faint);
}

.site-footer__disclaimer-wrap {
    margin: 0 0 clamp(18px, 3vw, 22px);
    padding-top: clamp(18px, 3vw, 22px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__disclaimer-wrap .site-footer__disclaimer {
    margin: 0;
    padding-top: 0;
    border-top: none;
}

.site-footer__disclaimer-toggle {
    display: none;
    list-style: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sf-muted);
    user-select: none;
}

.site-footer__disclaimer-toggle::-webkit-details-marker {
    display: none;
}

@media (min-width: 769px) {
    .site-footer__disclaimer-wrap .site-footer__disclaimer {
        display: block;
    }
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__copyright {
    margin: 0;
    font-size: 0.78rem;
    color: var(--sf-muted);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.site-footer__legal .site-footer__link,
.site-footer__legal .site-footer__link-btn {
    font-size: 0.78rem;
    color: var(--sf-muted);
}

.site-footer__legal-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    user-select: none;
}

.site-footer--compact .site-footer__top {
    margin-bottom: 14px;
}

.site-footer--compact .site-footer__grid {
    display: none;
}

.site-footer--compact .site-footer__tagline {
    font-size: 0.84rem;
}

.site-footer--compact .site-footer__disclaimer {
    margin-bottom: 12px;
    padding-top: 0;
    border-top: none;
    font-size: 0.68rem;
}

.site-footer--compact .site-footer__bottom {
    padding-top: 0;
    border-top: none;
}

@media (max-width: 768px) {
    .site-footer::before {
        display: none;
    }

    .site-footer__inner {
        padding: 32px 20px calc(28px + env(safe-area-inset-bottom));
    }

    .site-footer__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
        margin-bottom: 24px;
    }

    .site-footer__brand {
        flex: none;
        max-width: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .site-footer__logo-link {
        margin-bottom: 10px;
    }

    .site-footer__logo {
        width: min(188px, 62vw);
        margin: 0 auto;
    }

    .site-footer__tagline {
        max-width: 22rem;
        font-size: 0.875rem;
    }

    .site-footer__privacy-note {
        display: none;
    }

    .site-footer__grid {
        flex: none;
        width: 100%;
        max-width: 22rem;
        grid-template-columns: 1fr 1fr;
        gap: 20px 32px;
        justify-content: center;
    }

    .site-footer__col {
        text-align: left;
    }

    .site-footer__col-title {
        margin-bottom: 8px;
    }

    .site-footer__links {
        gap: 6px;
    }

    .site-footer__link {
        font-size: 0.84rem;
    }

    .site-footer__disclaimer-wrap {
        width: 100%;
        text-align: center;
        padding-top: 16px;
        margin-bottom: 12px;
    }

    .site-footer__disclaimer-toggle {
        display: inline-block;
    }

    .site-footer__disclaimer-wrap:not([open]) .site-footer__disclaimer {
        display: none;
    }

    .site-footer__disclaimer-wrap .site-footer__disclaimer {
        margin-top: 10px;
        text-align: center;
        font-size: 0.68rem;
        line-height: 1.5;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding-top: 16px;
        border-top: none;
    }

    .site-footer__copyright {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .site-footer__legal {
        justify-content: center;
    }
}

/* Keep footer at bottom on short homepage viewports */
body.cover-page {
    display: flex;
    flex-direction: column;
}

body.cover-page > main {
    flex: 1 0 auto;
}
