.terms-page {
    min-height: 100vh;
    color: #e8e6e1;
}

.terms-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(201, 168, 76, 0.16);
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(18px);
}

.terms-header__inner {
    width: min(1180px, calc(100% - 2rem));
    min-height: 72px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.terms-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
}

.terms-brand__logo {
    width: auto;
    height: 42px;
    object-fit: contain;
}

.terms-header__links,
.terms-footer nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.terms-header__links a,
.terms-footer a {
    color: #e8e6e1;
    font-size: 0.9rem;
    text-decoration: none;
}

.terms-header__links a:hover,
.terms-footer a:hover {
    color: var(--accent-light);
}

.terms-language {
    justify-self: end;
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.terms-language__button {
    min-width: 38px;
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #e8e6e1;
    cursor: pointer;
    font: 700 0.76rem var(--font-body);
}

.terms-language__button.active {
    background: var(--accent);
    color: #090909;
}

.terms-hero {
    max-width: 780px;
}

.terms-eyebrow {
    margin-bottom: 0.65rem;
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
}

.terms-updated {
    margin-top: 0.9rem;
    color: #e8e6e1;
    font-size: 0.86rem;
}

.terms-page .privacy-desc,
.terms-page .privacy-body {
    color: #e8e6e1;
}

.terms-page .privacy-section a {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: rgba(201, 168, 76, 0.5);
    text-underline-offset: 0.18em;
}

.terms-footer {
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(201, 168, 76, 0.14);
    background: rgba(5, 5, 8, 0.82);
}

.terms-footer__inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: #e8e6e1;
    font-size: 0.86rem;
}

@media (max-width: 680px) {
    .terms-header__inner {
        grid-template-columns: 1fr auto;
        min-height: 64px;
    }

    .terms-brand__logo {
        height: 36px;
    }

    .terms-header__links {
        display: none;
    }

    .terms-footer__inner {
        padding-top: 1.4rem;
        padding-bottom: calc(1.4rem + env(safe-area-inset-bottom));
        flex-direction: column;
        justify-content: center;
    }

    .terms-footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
