/* Ageproof web surface — the legal/support pages Apple requires.
   Matches DESIGN.md: system type, automatic light/dark, Pine accent,
   no gradients, no custom fonts, AA contrast in both schemes. */

:root {
  --ink: #1c1c1e;
  --ink-secondary: #4a4a4f;
  --bg: #ffffff;
  --bg-raised: #f5f5f7;
  --rule: #d8d8dd;
  --accent: #0b6e4f;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f7;
    --ink-secondary: #a8a8ae;
    --bg: #000000;
    --bg-raised: #1c1c1e;
    --rule: #38383c;
    --accent: #35b584;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 3rem 1.25rem 6rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main { max-width: var(--measure); margin: 0 auto; }

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

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

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

h3 { font-size: 1.0625rem; margin: 1.75rem 0 0.5rem; }

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

p { margin: 0 0 1rem; }

ul { padding-left: 1.25rem; margin: 0 0 1rem; }

li { margin-bottom: 0.5rem; }

strong { color: var(--ink); font-weight: 600; }

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

a:hover { text-decoration-thickness: 2px; }

.dateline {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  margin: 0 0 2.5rem;
}

.lede {
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.callout {
  background: var(--bg-raised);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 0.5rem;
  margin: 0 0 2rem;
}

.callout p:last-child { margin-bottom: 1rem; }

/* Wide content must scroll inside itself; the page body never does. */
.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.9375rem;
}

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

th { color: var(--ink); font-weight: 600; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-secondary);
}

footer a { margin-right: 1.25rem; }

.home {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}
