:root {
  --bg: #f4f5f8; --surface: #ffffff; --surface-2: #f8f9fb; --border: #e4e7ec; --border-strong: #d0d5dd;
  --text: #101828; --text-2: #475467; --muted: #667085;
  --accent: #3d63dd; --accent-hover: #3354c4; --accent-soft: #eef2ff; --accent-ink: #ffffff;
  --bad: #e5484d; --bad-soft: #fdecec;
  --shadow-lg: 0 20px 40px -12px rgba(16, 24, 40, .22);
  --ring: 0 0 0 4px rgba(61, 99, 221, .16);
  --head-bg: rgba(244, 245, 248, .86);
  --hero-ink: #ffffff; --hero-ink-2: rgba(255, 255, 255, .82);
  --hero-1: #1a2a6c; --hero-2: #2440a0; --hero-3: #3d63dd;
  --hero-glow-1: rgba(124, 92, 219, .75); --hero-glow-2: rgba(14, 159, 154, .55);
  --hero-line: rgba(255, 255, 255, .07);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0e12; --surface: #15181e; --surface-2: #1b1f26; --border: #262a33; --border-strong: #343a46;
    --text: #f2f4f7; --text-2: #c0c5d0; --muted: #8a92a3;
    --accent: #6b8cff; --accent-hover: #86a0ff; --accent-soft: rgba(107, 140, 255, .14); --accent-ink: #0c0e12;
    --bad: #ff6b70; --bad-soft: rgba(255, 107, 112, .13);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
    --ring: 0 0 0 4px rgba(107, 140, 255, .22); --head-bg: rgba(12, 14, 18, .82);
    --hero-1: #0d1336; --hero-2: #16245e; --hero-3: #2440a0;
    --hero-glow-1: rgba(124, 92, 219, .5); --hero-glow-2: rgba(14, 159, 154, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e12; --surface: #15181e; --surface-2: #1b1f26; --border: #262a33; --border-strong: #343a46;
  --text: #f2f4f7; --text-2: #c0c5d0; --muted: #8a92a3;
  --accent: #6b8cff; --accent-hover: #86a0ff; --accent-soft: rgba(107, 140, 255, .14); --accent-ink: #0c0e12;
  --bad: #ff6b70; --bad-soft: rgba(255, 107, 112, .13);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
  --ring: 0 0 0 4px rgba(107, 140, 255, .22); --head-bg: rgba(12, 14, 18, .82);
  --hero-1: #0d1336; --hero-2: #16245e; --hero-3: #2440a0;
  --hero-glow-1: rgba(124, 92, 219, .5); --hero-glow-2: rgba(14, 159, 154, .35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); display: flex; flex-direction: column;
  font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 750; letter-spacing: -0.025em; }
p { margin: 0; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1120px; margin: 0 auto; }
.hidden { display: none !important; }
/* ---------- header (same as the home page) ---------- */
.site-head { background: var(--head-bg); border-bottom: 1px solid var(--border); }
.head-row { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--text); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.logo {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none;
  background: #3d63dd;
  box-shadow: 0 4px 10px -2px rgba(61, 99, 221, .45);
}
.logo svg { width: 22px; height: 22px; stroke-width: 2; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); padding: 7px 11px; border-radius: 8px; }
.back:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.back svg { width: 16px; height: 16px; transform: scaleX(-1); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 560px) { .brand small, .back span { display: none; } }


/* ---------- document pages (privacy policy, school notice) ---------- */
main { flex: 1; padding-block: clamp(28px, 6vw, 56px); }
.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(28px, 4vw, 36px); }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.doc .lead { font-size: 17px; color: var(--text-2); margin-top: 18px; }
.doc h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; margin: 40px 0 10px; padding-top: 8px; }
.doc h3 { font-size: 16px; margin: 22px 0 6px; }
.doc p, .doc ul, .doc ol, .doc table { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.doc td:first-child { font-weight: 600; width: 30%; }
.doc .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin: 26px 0 8px; }
.doc .toc b { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.doc .toc ol { margin: 8px 0 0; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } .doc td:first-child { width: auto; } }
.doc .callout { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
.doc .sample { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; font-size: 15px; }
.doc .table-wrap { overflow-x: auto; }
footer { padding-block: 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); text-align: center; }
footer a { color: var(--muted); }
footer .sep { margin: 0 8px; }

/* ---------- refresh (same as the home page): floating glass header, pill controls, softer corners ---------- */
:root { --font: Geist, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --head-bg: rgba(255, 255, 255, .72); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --head-bg: rgba(21, 24, 30, .72); } }
:root[data-theme="dark"] { --head-bg: rgba(21, 24, 30, .72); }
body { font-feature-settings: normal; }
h1 { font-weight: 700; letter-spacing: -0.035em; }
.site-head { padding-top: 10px; background: none; border: 0; }
.head-row {
  height: 58px; padding: 0 9px 0 14px; border-radius: 18px;
  background: var(--head-bg); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px -6px rgba(16, 24, 40, .08);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
}
.back { border-radius: 99px; transition: background .15s, color .15s; }
.back:hover svg { transform: scaleX(-1) translateX(3px); }
.back svg { transition: transform .2s; }
.icon-btn { border-radius: 50%; transition: background .15s, color .15s; }
html { scroll-padding-top: 24px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; }
.doc h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; padding-top: 28px; border-top: 1px solid var(--border); }
.doc .toc { border-radius: 20px; padding: 18px 22px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px -6px rgba(16, 24, 40, .08); }
.doc .toc a { color: var(--text-2); }
.doc .toc a:hover { color: var(--accent); }
.doc .toc li { margin: 0 0 6px; break-inside: avoid; }
.doc .callout, .doc .sample { border-radius: 16px; }
.doc .table-wrap { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 14px; }
.doc .table-wrap table { margin: 0; }
.doc .table-wrap tr:last-child td { border-bottom: 0; }

/* Formerly style="" attributes (the CSP blocks inline styles) */
.sprite { position: absolute; }
