:root {
  --canvas: #F4F1E9;
  --canvas-2: #EFEBE1;
  --ink: #24221B;
  --ink-2: #4A4740;
  --muted: #857F72;
  --brass: #9A7B45;
  --brass-soft: rgba(154, 123, 69, 0.12);
  --hairline: rgba(36, 34, 27, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #16150F;
    --canvas-2: #1D1B14;
    --ink: #EDE9DE;
    --ink-2: #C4BFB2;
    --muted: #8C877A;
    --brass: #C2A06A;
    --brass-soft: rgba(194, 160, 106, 0.14);
    --hairline: rgba(237, 233, 222, 0.14);
  }
}

:root[data-theme="dark"] {
  --canvas: #16150F;
  --canvas-2: #1D1B14;
  --ink: #EDE9DE;
  --ink-2: #C4BFB2;
  --muted: #8C877A;
  --brass: #C2A06A;
  --brass-soft: rgba(194, 160, 106, 0.14);
  --hairline: rgba(237, 233, 222, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font: 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 6rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

h1 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.4rem;
  font-weight: 400;
}

h2 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  color: var(--ink);
  margin: 2.75rem 0 0.65rem;
  font-weight: 400;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 1.6rem 0 0.4rem;
  font-weight: 600;
}

p { margin: 0 0 1rem; }
a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
strong { color: var(--ink); font-weight: 600; }

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 2.5rem;
}

.lede {
  font-size: 1.06rem;
  color: var(--ink-2);
  border-left: 2px solid var(--brass);
  padding-left: 1.1rem;
  margin: 0 0 2.5rem;
}

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }

.card {
  background: var(--canvas-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.25rem;
}

.card p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 28rem;
  font-size: 0.93rem;
}

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

th {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

code {
  background: var(--brass-soft);
  color: var(--ink);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.85rem;
}

footer a { color: var(--muted); }

.nav {
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
}

.nav a { margin-right: 1.2rem; }

/* On a phone, a two-column table hides the second column behind a sideways scroll.
   In a legal document the second column is the answer, so the rows stack instead. */
@media (max-width: 34rem) {
  .table-scroll { overflow-x: visible; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--hairline);
  }
  tr:last-child { border-bottom: none; }
  td { display: block; border: none; padding: 0; }
  td:first-child { color: var(--ink); font-weight: 600; margin-bottom: 0.3rem; }
}

/* Credits sit at the foot of the policy as fine print: smaller, quieter, and clearly
   acknowledgements rather than terms the reader is agreeing to. */
.fine { color: var(--muted); font-size: 0.85rem; }
.credits { margin: 0 0 1rem; font-size: 0.85rem; }
.credits dt { color: var(--ink); font-weight: 600; margin-top: 0.9rem; }
.credits dd { margin: 0.2rem 0 0; color: var(--muted); line-height: 1.6; }
