/* ============================================================
   termsofuse.html — page styles
   Legal body typography + ported .ool counter numbering
   ============================================================ */

/* compact hero variant */
.page-hero--compact {
    padding-block: calc(var(--nav-h) + clamp(40px, 6vw, 64px)) clamp(40px, 5vw, 56px);
}

/* ---------- legal body ---------- */
.terms {
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.terms a {
    color: var(--azure-600);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.terms a:hover { color: var(--azure-700); }

/* counter setup — 1 / 1.1 / 1.1.1 numbering, ported from legacy .ool rules */
.terms .ool,
.terms .ool ol {
    counter-reset: ool;
    list-style: none;
    margin: 0;
    padding: 0;
}

.terms .ool li {
    display: block;
    position: relative;
    margin: 12px 0;
    padding-left: 3.25rem;
}

.terms .ool li::before {
    content: counters(ool, ".");
    counter-increment: ool;
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--azure-600);
}

/* top-level sections read as headings */
.terms .ool > li {
    margin: 40px 0 0;
    padding-left: 2.75rem;
}
.terms .ool > li:first-child { margin-top: 0; }
.terms .ool > li::before {
    font-size: 1.125rem;
    line-height: 1.4;
    color: var(--text-faint);
}
.terms .ool > li > strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text-strong);
    margin-bottom: 8px;
}

/* deeper levels: longer numbers need a wider hanging gutter */
.terms .ool ol ol li { padding-left: 4.25rem; }

/* paragraphs inside li (trailing clause text) keep readable measure */
.terms .ool li { max-width: 65ch; }

/* ---------- print ---------- */
@media print {
    .navbar,
    header,
    .footer,
    .cookiebar,
    .skip-link,
    .ornament {
        display: none !important;
    }
    .page-hero,
    .page-hero--compact {
        background: none;
        color: #000;
        padding: 0 0 24px;
    }
    .page-hero::before,
    .page-hero::after { display: none; }
    .page-hero h1 { color: #000; }
    .page-hero .lead,
    .terms,
    .terms .ool li::before,
    .terms .ool > li > strong { color: #000; }
    .section { padding: 0; }
}
