/* Legal pages (privacy, terms) and the error pages, on top of landing.css (11 Nov 2026): the site's header and footer,
   one readable column, the draft notice and every [FILL IN] marker kept visible. The wording comes from legal/*.md
   (scripts/build-legal.py) and is never changed here. */
.legal { max-width: calc(68ch + 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 120px);
  display: grid; gap: 14px; }
.legal h1 { font-weight: 450; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; color: var(--ink);
  margin-bottom: 8px; text-wrap: balance; }
.legal h2 { font-weight: 500; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); margin-top: 28px; }
.legal h3 { font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--ink); margin-top: 16px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.legal ul { list-style: disc; margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal ul ul { list-style: circle; margin-top: 6px; }
.legal li::marker { color: var(--brass); }
.legal strong { font-weight: 600; color: var(--text); }
.legal a { color: var(--ink); }
.legal .notice { padding: 16px 18px; border-radius: 12px; background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 15px; line-height: 1.6; color: var(--text); }
mark.fill { padding: 0 4px; border-radius: 4px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.legal .back { margin-top: 24px; font-size: 14.5px; }
.legal .back a { display: inline-flex; align-items: center; min-height: 44px; }

/* error pages (404 and 500): the masthead with the wordmark, then one short screen */
.err { min-height: calc(100svh - 76px - 110px); display: grid; align-items: center; }
.err-in { padding-block: clamp(56px, 10vh, 120px); }
.err-title { margin-top: 24px; font-weight: 450; font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -.035em; color: var(--ink);
  text-wrap: balance; }
.err .lede { margin-top: 24px; }

/* Print (5 Nov 2026, kept): black on white, no site chrome or screen-only links, sections kept together. */
@media print {
  .mast, .foot, .skip { display: none; }
  body { background: white; color: black; }
  .legal { max-width: none; padding: 0; gap: 8px; }
  .legal h1, .legal h2, .legal h3, .legal p, .legal li, .legal strong { color: black; }
  .legal .back { display: none; }
  .legal a { color: black; text-decoration: underline; }
  .legal .notice { box-shadow: none; border: 1px solid black; background: none; }
  mark.fill { background: none; color: black; border: 1px solid black; }
  .legal h2 { break-after: avoid; }
  .legal li, .legal p { break-inside: avoid; }
}
