/* Legal reading surfaces extend Atom’s existing type and color system. */
.legal-page { overflow-x: visible; }
.legal-top { position: static; color: var(--brand-ink); background: var(--brand); gap: 24px; }
.legal-hero { padding: clamp(64px, 8vw, 112px) var(--gutter) 56px; background: var(--brand); color: var(--brand-ink); }
.legal-hero h1 { font-size: min(var(--step-display), 6rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.legal-lead { max-width: 38ch; margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; text-wrap: pretty; }
.legal-date { max-width: 65ch; margin-top: 40px; color: var(--brand-muted); font-size: var(--step-small); }
.legal-layout { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: clamp(32px, 6vw, 96px); padding: 64px var(--gutter) 112px; }
.legal-contents { align-self: start; }
.legal-contents h2 { font-size: var(--step-small); font-weight: 700; margin-bottom: 16px; }
.legal-contents ul { display: grid; gap: 8px; }
.legal-contents a { display: inline-block; padding: 6px 0; font-size: var(--step-small); text-decoration-thickness: 1px; }
.legal-copy { max-width: 70ch; min-width: 0; overflow-wrap: anywhere; }
.legal-copy section + section { margin-top: 56px; }
.legal-copy h2 { max-width: 28ch; margin-bottom: 20px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.legal-copy p + p { margin-top: 20px; }
.legal-copy p { line-height: 1.65; }
.legal-copy a, .legal-contents a { text-underline-offset: 0.2em; }
.legal-copy a:hover, .legal-contents a:hover { color: var(--accent); }
.legal-nowrap { white-space: nowrap; }
.legal-copy section { scroll-margin-top: 32px; }
.legal-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 32px var(--gutter); background: var(--ink); color: var(--paper); }
.legal-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.legal-footer a { display: inline-block; padding: 12px 0; text-underline-offset: 0.2em; }
.legal-page :focus-visible { outline-color: currentColor; }
.legal-skip { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 12px 20px; background: var(--paper); color: var(--ink); transform: translateY(-200%); }
.legal-skip:focus { transform: none; }
@media (max-width: 760px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); padding-top: 40px; gap: 48px; }
  .legal-contents ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
  .legal-top { align-items: start; }
  .legal-top .top__links { gap: 16px; flex-wrap: wrap; justify-content: end; }
  .legal-hero { padding-top: 56px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .legal-page { scroll-behavior: auto; } }
