/* ===== AI Scan — Legal pages (Privacy, Terms) ==============================
   Long-form prose at a readable measure. All tokens from the design system.
   ========================================================================== */

.legal { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }

/* Mount point must not box the nav in — otherwise position:sticky has no room
   to travel and scrolls away. display:contents lets the sticky nav travel the
   full page, matching the home page behaviour. */
#ls-nav { display: contents; }
.legal__wrap { max-width: var(--container-text); margin: 0 auto; padding-inline: var(--gutter); }

.legal__head { margin-bottom: var(--space-7); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border-subtle); }
.legal__title { font-size: var(--text-display-2); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); margin-top: var(--space-3); }
.legal__updated { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-tertiary); margin-top: var(--space-4); letter-spacing: 0.02em; }

.legal__prose { color: var(--text-secondary); }
.legal__prose > p { font-size: var(--text-body); line-height: var(--leading-relaxed); margin: 0 0 var(--space-5); }
.legal__prose h2 { font-size: var(--text-h4); font-weight: var(--weight-semibold); color: var(--text-primary); letter-spacing: var(--tracking-snug); margin: var(--space-8) 0 var(--space-4); }
.legal__prose h2:first-child { margin-top: 0; }
.legal__prose ul { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.legal__prose li { position: relative; padding-left: var(--space-5); font-size: var(--text-body); line-height: var(--leading-relaxed); }
.legal__prose li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--color-blue); border-radius: 2px; }
.legal__prose strong { color: var(--text-primary); font-weight: var(--weight-semibold); }
.legal__prose a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__prose a:hover { color: var(--action-primary-hover); }
