/* Legal pages: the same calm paper look as the stories, tuned for long reading. */
:root { --bg: #F7F6F2; --surface: #FFFFFF; --sunk: #EFEDE6; --ink: #1B1D3A; --muted: #5C5E74; --line: #E2DFD5; --night: #1E2158; --sun: #F4B740; --coral: #B9452F; --good: #13794B; --ui: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif; --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F1022; --surface: #181A33; --sunk: #222445; --ink: #EFEFF7; --muted: #A6A8C4; --line: #2C2E52; --coral: #FF9A84; --good: #4CC48E; color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 16.5px/1.65 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.lg-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.lg-top { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.lg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.lg-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.lg-logo svg { width: 32px; height: 32px; flex: none; border-radius: 9px; }
.lg-home { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 14px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.lg-home:hover { background: var(--sunk); }
.lg-hero { padding-block: 28px 18px; }
.lg-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.lg-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.lg-tabs a:hover { background: var(--sunk); }
.lg-tabs a[aria-current] { background: var(--ink); color: var(--bg); box-shadow: none; }
h1 { margin: 0 0 10px; font: 800 clamp(34px, 6vw, 56px)/1.04 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; hyphens: auto; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; color: var(--muted); font-size: 14.5px; }
.lg-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sunk); }
.lg-lang a { display: inline-flex; align-items: center; min-height: 34px; padding-inline: 13px; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.lg-lang a[aria-current] { background: var(--surface); box-shadow: 0 1px 3px rgba(10, 10, 50, .2); }
.lg-main { flex: 1; padding-block: 8px 64px; }
.lg-draft { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: #FFE07A; color: #3A2C05; font-weight: 600; }
.lg-note { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.lg-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.lg-facts li { display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 10px 14px; border-radius: 14px; background: color-mix(in oklab, var(--good) 11%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--good) 28%, var(--line)); font-weight: 700; }
.lg-facts svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--good); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.lg-grid:has(.lg-toc) { grid-template-columns: 240px minmax(0, 1fr); }
.lg-toc { position: sticky; top: 84px; align-self: start; max-height: calc(100dvh - 104px); overflow-y: auto; }
.lg-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px; padding: 6px 8px; border-radius: 9px; color: var(--muted); font-size: 14.5px; line-height: 1.35; text-decoration: none; }
.lg-toc a::before { content: counter(toc); font-weight: 700; color: var(--coral); }
.lg-toc a:hover { background: var(--sunk); color: var(--ink); }
.lg-doc { display: grid; gap: 12px; min-width: 0; }
.lg-sec { padding: 20px 24px 22px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 700 21px/1.25 var(--display); letter-spacing: -.012em; hyphens: auto; }
.lg-sec h2 span { flex: none; color: var(--coral); font-size: 17px; font-variant-numeric: tabular-nums; }
.lg-sec p { margin: 0 0 11px; }
.lg-sec p:last-child, .lg-sec ul:last-child { margin-bottom: 0; }
.lg-sec ul { margin: 0 0 11px; padding-inline-start: 20px; }
.lg-strong { padding: 12px 14px; border-radius: 10px; background: var(--sunk); }
.todo { padding: 1px 6px; border-radius: 5px; background: #FFE07A; color: #3A2C05; font-weight: 600; }
.lg-clear button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 11px; background: var(--sunk); color: var(--ink); font: 700 15px/1.25 var(--ui); cursor: pointer; }
.lg-clear button:hover { background: color-mix(in oklab, var(--sunk) 86%, var(--ink)); }
.lg-clear button.armed { background: #BE3535; color: #fff; }
.lg-clear p { margin: 8px 0 0; color: var(--good); font-weight: 600; font-size: 15px; }
.lg-clear p:empty { display: none; }
.lg-foot { padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.lg-foot a { margin-inline-start: 12px; }
@media (max-width: 860px) {
  .lg-grid:has(.lg-toc) { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { display: none; }
  .lg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .lg-home { padding-inline: 8px; font-size: 14px; }
  .lg-logo { font-size: 19px; }
  .lg-sec { padding: 17px 17px 19px; }
  .lg-foot a { display: inline-block; margin-inline: 0 12px; min-height: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
