/* The legal pages: a long document read top to bottom, nothing else.
 *
 * Generated by scripts/build-legal-pages.py from docs/legal/; the page
 * chrome (nav, footer) is styled by site.css — this file styles only the
 * document itself, scoped under .legal so nothing leaks into the site.
 */

.legal {
  max-width: 860px;
  padding-top: 40px;
  padding-bottom: 72px;
}

.legal-doc h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.legal-doc .doc-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}

/* The contents list, at the top of a policy that runs for several screens.
   A box rather than a bare list: it is the one thing on the page that is not
   the document, and a run of links in the document's own type reads as a
   section of it. `.cap` is the site's own label type; the list keeps the
   document's line-height so a long section title wraps like the prose it
   points at. */
.legal-doc .doc-toc {
  border: 1px solid var(--lineS);
  background: var(--surface2);
  padding: 16px 20px;
  margin: 24px 0 32px;
}

.legal-doc .doc-toc .cap {
  display: block;
  margin-bottom: 10px;
}

.legal-doc .doc-toc ol {
  margin: 0;
}

.legal-doc .doc-toc li {
  margin: 0 0 4px;
}

.legal-doc h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 44px 0 12px;
}

.legal-doc h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 28px 0 10px;
}

.legal-doc p,
.legal-doc li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}

.legal-doc p {
  margin: 0 0 14px;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 14px;
  padding-left: 24px;
}

.legal-doc li {
  margin: 0 0 8px;
}

/* The date beside an article in the reading section's list (`/guides/`):
   one piece, so «17 September 2026» moves to the next line whole instead of
   breaking after the day. */
.legal-doc li time {
  white-space: nowrap;
}

.legal-doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.legal-doc code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tables are wider than a phone; they scroll inside their own box rather
   than dragging the whole page sideways. */
.legal-doc .table-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-doc table {
  min-width: 560px;
  font-size: 13.5px;
}

.legal-doc th,
.legal-doc td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.legal-doc thead th {
  color: var(--muted);
  font-weight: 600;
  background: var(--surface);
  white-space: nowrap;
}

.legal-doc tbody tr:last-child td {
  border-bottom: 0;
}
