/* Legal pages: a plain reading column with a contents list. Tokens come from base.css. */
.legal { max-width: 820px; margin: 0 auto; padding: var(--s-16) var(--s-6) var(--s-24); }
@media (max-width: 720px) { .legal { padding: var(--s-12) var(--s-4) var(--s-16); } }

.legal h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.legal .updated { margin-top: var(--s-3); color: var(--muted); font-weight: 700; }

.legal h2 { margin-top: var(--s-16); font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.legal h3 { margin-top: var(--s-8); font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.legal p, .legal ul, .legal table, .legal .toc { margin-top: var(--s-4); }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.25rem; display: grid; gap: var(--s-2); }
.legal a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--ink); }
.legal .short { font-style: italic; }

.legal .toc { padding: var(--s-6); background: var(--sand); border-radius: var(--radius); }
.legal .toc h2 { margin: 0 0 var(--s-3); font-size: 1.1rem; }
.legal .toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.legal .toc a { display: inline-flex; min-height: 32px; align-items: center; font-weight: 700; }

.legal address { margin-top: var(--s-4); font-style: normal; }

.legal .table-wrap { margin-top: var(--s-4); overflow-x: auto; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; margin-top: 0; }
.legal th, .legal td { border: 1px solid var(--rule); padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; }
.legal th { background: var(--sand); }
.legal td:last-child, .legal th:last-child { text-align: center; white-space: nowrap; }

.legal .credit { margin-top: var(--s-12); color: var(--muted); font-size: var(--step--1); }
