/* The two legal pages — /privacy and /tracking — on top of `styles.css`.
 *
 * Nothing here is a token; every value is one the landing page already
 * defines. What this file adds is the shape of a long text document, which
 * the landing page never has: a heading rhythm, real list bullets, a table
 * of contents, and a prose cap applied to the whole article. */

.legal-main { padding-block: var(--space-8) var(--space-11); }

.legal-article {
  max-width: var(--measure-prose);
  margin-inline: auto;
}

.legal-article h1 {
  font-size: var(--text-h2);
  color: var(--colour-text-brand);
  margin-bottom: var(--space-2);
}
.legal-updated {
  color: var(--colour-text-muted);
  font-size: var(--text-small);
  margin-bottom: var(--space-8);
}

.legal-article h2 {
  font-size: var(--text-h3);
  color: var(--colour-text);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--colour-rule);
}
.legal-article h3 {
  font-size: var(--text-body);
  margin-top: var(--space-6);
}

.legal-article ul, .legal-article ol {
  margin: 0 0 var(--space-4);
  padding-inline-start: var(--space-6);
}
.legal-article li { margin-bottom: var(--space-2); }
.legal-article li::marker { color: var(--colour-text-brand); }

/* A quoted notice, as the visitor sees it on the landing page. */
.legal-quote {
  margin: 0 0 var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--colour-surface-sunk);
  border-inline-start: 4px solid var(--colour-text-brand);
  border-radius: var(--radius-sm);
}
.legal-quote p:last-child { margin-bottom: 0; }

/* The opt-out control on /tracking. One button, its label chosen by state. */
.optout {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-md);
}
.optout p { margin-bottom: var(--space-4); }
.optout .cta { padding-inline: var(--space-6); }
.optout-state { font-weight: var(--weight-emphasis); }

.legal-back { margin-top: var(--space-9); font-size: var(--text-small); }

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-5);
  font-size: var(--text-small);
}
.legal-table th, .legal-table td {
  text-align: start;
  vertical-align: top;
  padding: var(--space-3);
  border-bottom: 1px solid var(--colour-rule);
}
.legal-table th { color: var(--colour-text-brand); }
