/* Light-only, mirroring app/globals.css. These pages are plain HTML outside the
   React bundle, so the tokens are duplicated by necessity — keep the two in
   sync when the palette changes, or the legal pages start looking like a
   different product. */
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --fg: #0f172a;
  --body: #334155;
  --muted: #475569;
  --faint: #64748b;
  --border: #e2e8f0;
  --link: #4f46e5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.65;
}

/* A white sheet on the canvas, matching the app's card treatment. */
main {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 3rem 2.5rem 3.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

@media (max-width: 640px) {
  main {
    margin: 0;
    padding: 2rem 1.25rem 3rem;
    border: 0;
    border-radius: 0;
  }
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.011em;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.1875rem;
  color: var(--fg);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

p,
li {
  color: var(--body);
}

.updated {
  color: var(--faint);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 2.5rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  color: var(--faint);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

footer a {
  color: var(--faint);
  margin-right: 1.25rem;
  text-decoration: none;
}

footer a:hover {
  color: var(--link);
}
