/*
 * Shared styles for the legal documents.
 *
 * Mirrors the app's design tokens (see `apps/mobile/lib/core/theme/`) so the
 * pages do not look like a foreign website when opened from the app. Values
 * are duplicated here on purpose: these files ship with Hosting, not with the
 * Flutter build, so they cannot import the Dart tokens.
 */

:root {
  --bg: #f2f0e6;
  --surface: #e7e4d8;
  --ink: #14140f;
  --ink-soft: #545044;
  --accent-ink: #3f4610;
  --line: #cfcbbb;
  --danger: #c1391b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14140f;
    --surface: #22221c;
    --ink: #f2f0e6;
    --ink-soft: #a4a494;
    --accent-ink: #e8ff5a;
    --line: #33332b;
    --danger: #ff6b4a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 42rem;
  margin: 0 auto;
}

h1,
h2,
.eyebrow {
  font-family: "Archivo Black", "Arial Black", -apple-system, sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}

h1 {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.updated {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

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

ul {
  padding-left: 1.1rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--accent-ink);
  font-weight: 700;
}

strong {
  font-weight: 700;
}

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

/* Tables are the one element that cannot shrink to a phone screen; let the
   wrapper scroll instead of breaking the page layout. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

th {
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.callout {
  background: var(--surface);
  border-left: 3px solid var(--accent-ink);
  padding: 0.85rem 1rem;
  margin: 1.5rem 0;
  font-size: 14px;
}

/* REMOVE BEFORE PUBLISHING — see the draft banner in each document. */
.draft-notice {
  background: var(--danger);
  color: #fff;
  padding: 0.85rem 1rem;
  margin: 0 0 2rem;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 4px;
}

.draft-notice a {
  color: #fff;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}
