/* Legal pages (scripts/build-legal.mjs): readable article column with a sticky table of contents. */
.lg { padding: calc(var(--hdr-h) + clamp(16px, 4vh, 48px)) 0 clamp(72px, 8vw, 120px); }
.lg-grid { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 720px); grid-template-areas: 'head head' 'toc body'; gap: 0 clamp(40px, 6vw, 96px); justify-content: center; }
.lg-head { grid-area: head; padding-bottom: clamp(28px, 4vw, 48px); margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.lg-h { margin: 0; font: 400 clamp(32px, 4vw, 56px)/1.05 var(--f-display); text-transform: uppercase; color: #3a4042; }
.lg-updated { margin-top: 14px; font: 500 13px/1.4 var(--f-mono); letter-spacing: 0.06em; color: var(--muted); }
.lg-toc { grid-area: toc; position: sticky; top: calc(var(--hdr-h) + 16px); align-self: start; }
.lg-toc p { margin: 0 0 12px; font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lg-toc ol { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 2px; }
.lg-toc ol a { display: block; padding: 7px 0; font-size: 14px; color: var(--muted); transition: color 0.25s; }
.lg-toc ol a:hover { color: var(--red-text); }
.lg-body { grid-area: body; min-width: 0; }
.lg-sec { padding-bottom: 8px; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.lg-sec + .lg-sec { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.lg-sec h2 { margin: 0 0 14px; font: 600 21px/1.3 var(--f-sans); color: var(--ink); }
.lg-sec p, .lg-sec li { font-size: 16px; line-height: 1.7; color: #3a4042; }
.lg-sec p + p { margin-top: 12px; }
.lg-sec ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.lg-sec li::marker { color: var(--red); }
.lg-sec a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.lg-sec b { color: var(--ink); font-weight: 600; }
.lg-sec code { font: 500 13.5px/1 var(--f-mono); background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.lg-contact { list-style: none; padding-left: 0 !important; }
.lg-todo { background: #fff2b3; color: #6b4e00; padding: 0 4px; border-radius: 4px; }
@media (max-width: 900px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'body'; }
  .lg-toc { display: none; }
  .lg-sec h2 { font-size: 19px; }
  .lg-sec p, .lg-sec li { font-size: 15.5px; }
}
