.terms-page {
    background: var(--canvas);
    color: var(--ink);
}

.terms-main {
    min-height: calc(100vh - var(--header-height));
}

.terms-shell {
    width: min(1160px, calc(100% - 64px));
    margin: 0 auto;
}

.terms-hero {
    padding: 72px 0 62px;
    background: #111;
    color: #fff;
}

.terms-kicker {
    color: #a8baff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.terms-hero h1 {
    margin: 22px 0;
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: 1;
}

.terms-hero h1 em {
    color: #89a5ff;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.terms-hero p {
    max-width: 560px;
    margin: 0 0 24px;
    color: #bbb;
    font-size: 15px;
    line-height: 1.7;
}

.terms-date {
    color: #aaa;
    font-size: 11px;
}

.terms-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 80px;
    padding-top: 64px;
    padding-bottom: 88px;
}

.terms-toc {
    position: sticky;
    top: calc(var(--header-height) + 28px);
}

.terms-toc h2 {
    margin: 0 0 20px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.terms-toc a {
    display: block;
    padding: 9px 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}

.terms-toc a:hover {
    color: var(--accent);
}

.terms-toc p {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.7;
}

.terms-article section {
    scroll-margin-top: calc(var(--header-height) + 28px);
}

.terms-article section + section {
    margin-top: 38px;
    padding-top: 38px;
    border-top: 1px solid var(--line);
}

.terms-section-number {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.terms-article h2 {
    margin: 0 0 20px;
    font-size: clamp(22px, 2.5vw, 29px);
    letter-spacing: -.8px;
    line-height: 1.2;
}

.terms-article p,
.terms-article li {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.85;
}

.terms-article p {
    margin: 14px 0 0;
}

.terms-article ul {
    padding-left: 20px;
}

.terms-article li + li {
    margin-top: 8px;
}

.terms-article a {
    color: var(--accent);
    text-underline-offset: 3px;
}

.terms-main a:focus-visible {
    border-radius: 3px;
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 800px) {
    .terms-shell {
        width: calc(100% - 40px);
    }

    .terms-hero {
        padding: 48px 0;
    }

    .terms-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .terms-toc {
        position: static;
    }

    .terms-toc nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
    }

    .terms-toc h2 {
        grid-column: 1 / -1;
    }
}
