/* legal.css — styles for /pages/info/legal/ (Terms of Use & Disclaimer).
   Loaded alongside the shared info.css, so it inherits the .info-wrap shell,
   headings, and typography. Relies on site-wide theme tokens
   (--primary-color, --text-main, --text-muted, --border-color, --bg-card,
   --bg-surface-2, --spacing-md) so it tracks the active light/dark theme. */

/* Last-updated line under the H1 */
.legal-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: -0.25rem 0 1.5rem;
}

/* ── Prominent health/disclaimer callout ────────────────────────────────── */
.legal-callout {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    background: var(--bg-surface-2, rgba(120, 120, 120, 0.06));
    padding: 1rem 1.15rem;
    margin: 0 0 2rem;
    line-height: 1.6;
}
.legal-callout-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

/* ── Table of contents ──────────────────────────────────────────────────── */
.legal-toc {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    padding: 1.1rem 1.35rem 1.2rem;
    margin: 0 0 2.5rem;
}
.legal-toc-title {
    font-size: 0.8rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.6rem !important;
}
.legal-toc ol {
    margin: 0;
    padding-left: 1.35rem;
    columns: 2;
    column-gap: 2rem;
    line-height: 1.7;
}
.legal-toc li { break-inside: avoid; }
.legal-toc a {
    color: var(--text-main);
    text-decoration: none;
}
.legal-toc a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.legal-section {
    margin: 0 0 1.75rem;
    /* offset anchor jumps so headings aren't hidden under a sticky header */
    scroll-margin-top: 90px;
}
.legal-section h2 {
    font-size: 1.15rem;
    margin: 1.75rem 0 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .legal-toc ol { columns: 1; }
}
