/* Shared styling for the legal pages (/terms, /privacy, /delete-account).
   Tokens mirror Web/index.html, which mirrors Mobile/constants/theme.ts.
   index.html stays deliberately self-contained (it is the SEO landing); these three are
   plain documents and share one sheet rather than triplicating it. */

:root {
  --accent: #FF5A4D;
  --accent-press: #E24A3E;
  --ink: #1A1D29;
  --muted: #5B6072;
  --faint: #8A8FA0;
  --canvas: #FBF9F8;
  --surface: #FFFFFF;
  --border: #ECE9E7;

  --ff-display: 'SF Pro Rounded', ui-rounded, 'Hiragino Maru Gothic ProN', 'Segoe UI', system-ui, sans-serif;
  --ff-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #FF6B5C;
    --ink: #ECEDEE;
    --muted: #9BA1B0;
    --faint: #6B7183;
    --canvas: #0F1116;
    --surface: #1A1D29;
    --border: #2A2E3A;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ff-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 5rem; }

header.top {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
header.top a.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.mark { width: 26px; height: 26px; flex: none; }

h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .4rem;
  text-wrap: balance;
}
.updated { color: var(--faint); font-size: .85rem; margin: 0 0 2.5rem; }
.lede { font-size: 1.05rem; color: var(--muted); margin: 0 0 2.5rem; }

h2 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  letter-spacing: -.01em;
  margin: 2.5rem 0 .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { font-size: 1rem; margin: 1.5rem 0 .25rem; }

p, li { color: var(--muted); }
p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 600; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-press); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.tablewrap { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--ink); font-weight: 600; white-space: nowrap; }
td { color: var(--muted); }

footer.bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}
footer.bottom a { color: var(--muted); }
