/* 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;
}

.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;
}

.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;
}
