/* Legal pages: long text, tables, address. Loads after site.css. */
.legal h2 { scroll-margin-top: 16px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.legal ol { padding-left: 24px; }
.legal li { margin-bottom: 6px; }
.legal code {
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.legal .draft {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--gold);
  color: var(--text);
}
.legal address { font-style: normal; margin: 0 0 16px; }
.legal .callout {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
  margin: 16px 0;
}
.legal .callout > :first-child { margin-top: 0; }
.legal .callout > :last-child { margin-bottom: 0; }
.legal > .tablewrap { max-width: 100%; }
.tablewrap { margin: 16px 0; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.legal thead th {
  font-family: var(--font-head);
  background: var(--surface-soft);
  white-space: nowrap;
}
.legal tbody th { font-weight: 600; }
@media (max-width: 719px) {
  .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { position: absolute; left: -9999px; }
  .legal tr { border-bottom: 3px solid var(--line); }
  .legal tr:last-child { border-bottom: 0; }
  .legal th, .legal td { border-bottom: 0; padding: 6px 12px; }
  .legal tbody th { padding-top: 12px; }
  .legal td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .legal tr > :last-child { padding-bottom: 12px; }
}
