/* Privacy policy and terms, built by infra/pages/build_legal.py from docs/.
   A dark title pane like the home page's, then the text on a light ground for long reading. */
main { margin-top: -72px; }
.l-hero { position: relative; overflow: hidden; background: linear-gradient(158deg, #24132f 0%, #0e0f12 100%); }
.l-hero .glow {
  position: absolute; right: -120px; top: -60px; width: 520px; height: 520px; border-radius: 80px;
  filter: blur(80px); opacity: 0.45; pointer-events: none;
  background: linear-gradient(200deg, #e9a27a 0%, #b33a3a 45%, #3b1a4a 100%);
}
.l-hero .tone { -webkit-mask-image: linear-gradient(215deg, #000 0%, transparent 55%); mask-image: linear-gradient(215deg, #000 0%, transparent 55%); }
.l-hero .wrap { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 64px; }
.l-kicker { margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.l-hero h1 { margin: 0 0 24px; font-size: clamp(64px, 10vw, 160px); }
.l-meta { margin: 0 0 12px; font-size: 15px; color: var(--on-dark-muted); }
.l-intro { max-width: 40em; }
.l-intro p { margin: 0 0 12px; font-size: 17px; color: rgba(255, 255, 255, 0.86); }
.l-intro a:hover { color: var(--amber); }
.draft {
  display: inline-block; margin: 8px 0 20px; padding: 10px 16px; border-radius: 12px;
  background: rgba(217, 71, 43, 0.16); border: 1px solid rgba(217, 71, 43, 0.5);
  color: #ffd9cf; font-size: 15px; font-weight: 700;
}
.short { margin-top: 40px; }
.short h2 { margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.short-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.short-cards p { margin: 0; background: #fff; color: var(--ink); border-radius: 20px; padding: 18px 20px; font-size: 15px; }
.short-cards strong { display: block; font-size: 17px; font-weight: 800; margin-bottom: 4px; }

.l-body { background: var(--ground); color: var(--ink); }
.l-body a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.l-body a:hover { color: var(--accent); }
.l-body .wrap { padding-top: 64px; padding-bottom: 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc h2 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; font-weight: 600; text-decoration: none; }
.toc a::before { content: counter(toc); min-width: 1.4em; font-family: var(--cond); font-weight: 850; font-size: 18px; line-height: 1.2; color: var(--accent); }

.sec { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px 40px; padding: 28px 0 44px; border-top: 1px solid var(--line); }
.sec:first-child { border-top: 2px solid var(--ink); }
.sec-main { min-width: 0; max-width: 44em; }
.sec-n { display: block; font-size: 56px; color: var(--accent); margin-bottom: 8px; }
.sec h2 { margin: 0 0 12px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.sec h3 { margin: 26px 0 6px; font-size: 18px; font-weight: 800; }
.sec p { margin: 0 0 12px; }
.sec ul, .sec ol { margin: 0 0 12px; padding-left: 22px; }
.sec li { margin: 0 0 8px; }
.sec code { font-size: 0.92em; background: #e6e8ec; padding: 1px 5px; border-radius: 6px; }
.gist {
  align-self: start; margin: 0; background: var(--ink-2); color: #fff; border: 2px solid var(--ink);
  padding: 14px 16px; font-size: 15px; box-shadow: 6px 6px 0 var(--accent);
}
.gist strong { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--on-dark-muted); margin-bottom: 4px; }
.sec:not(:has(.gist)) { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1000px) {
  .l-body .wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { columns: 2 220px; column-gap: 24px; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 760px) {
  .sec { grid-template-columns: minmax(0, 1fr); }
  .sec-n { font-size: 44px; }
  .l-hero .wrap { padding-top: 120px; padding-bottom: 48px; }
}
