/* VizuStep legal pages.
   One stylesheet for both documents in all ten languages. Plain, readable and
   phone-first: this is read by tired parents and support workers, often on a
   small screen, sometimes at a large text size. Nothing here fights the
   reader's own settings — sizes are in rem so the phone's text size wins. */

:root {
  color-scheme: light dark;
  --bg: #fdfcfa;
  --fg: #23201c;
  --muted: #5d5751;
  --rule: #e2ddd6;
  --accent: #1f5f4f;
  --card: #f4f1ec;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --fg: #ece7e0;
    --muted: #b0a9a1;
    --rule: #332f2b;
    --accent: #7fc8b2;
    --card: #211e1b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 16px 64px;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", "Noto Sans JP", "Noto Sans SC", Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap { max-width: 44rem; margin: 0 auto; }

header {
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 6px;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 800;
}

.updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 36px 0 10px;
  font-weight: 700;
}

h3 {
  font-size: 1.02rem;
  margin: 24px 0 6px;
  font-weight: 700;
}

p, li { margin: 0 0 14px; }

ul { padding-inline-start: 1.25em; }

a { color: var(--accent); }

a:focus-visible,
.langs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lead {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 20px 6px;
  margin: 0 0 8px;
}

.lead p:last-child { margin-bottom: 14px; }

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 16px 0 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

.langs a { text-decoration: none; color: var(--muted); }
.langs a:hover { text-decoration: underline; }
.langs a.on { color: var(--fg); font-weight: 700; text-decoration: underline; }

footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.docnav { margin-bottom: 8px; }

@media (min-width: 40rem) {
  h1 { font-size: 2.15rem; }
  body { padding-left: 24px; padding-right: 24px; }
}
