/* =====================================================================
 * pages/terms.css — legal-document layout for /terms (and reusable by
 * /privacy when it ships).
 *
 * Body markup is wrapped in .legal-doc.prose, so bullet/numbered lists
 * inherit the shared .prose list styling from base.css; this sheet adds
 * only the document-specific concerns: a comfortable reading column,
 * section rhythm, the "Last updated" meta line, the lawyer-review banner
 * spacing, and the subtle inline legal-review markers.
 *
 * Loaded LAST in the cascade (via $page_css in TermsController). Tokens /
 * color-mix / currentColor only — no hex literals (hex audit stays clean).
 * ===================================================================== */

/* Comfortable single column for sustained reading. */
.legal-doc {
    max-width: 75ch;
    margin-inline: auto;
}

/* Lawyer-review banner — sits at the very top of the body; a little
   breathing room before the document proper begins. */
.legal-doc__banner {
    margin-bottom: var(--space-6);
}

/* "Last updated:" line — quiet, just below the banner. */
.legal-doc__meta {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

/* Each numbered clause. Generous separation so the document scans well. */
.legal-doc__section + .legal-doc__section {
    margin-top: var(--space-7);
}

/* Clause heading — smaller and more restrained than the base h2 so the
   long document reads as a flowing legal text, not a stack of titles. */
.legal-doc__heading {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

/* Inline "pending legal review" markers (sections 8, 13, 15). Subtle:
   muted, italic, slightly smaller, with a soft tinted strip so they read
   as editorial flags rather than part of the binding text. Trivially
   removable once a lawyer signs off (one lang-key + this rule). */
.legal-doc__review-note {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-left: 3px solid color-mix(in srgb, var(--color-warning) 60%, transparent);
    background-color: color-mix(in srgb, var(--color-warning) 8%, var(--color-bg));
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-style: italic;
    color: var(--color-text-muted);
}
