:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0b1f4d;
  background: #f4f7fb;
  font-synthesis: none;
  --ink: #0b1f4d;
  --muted: #53627e;
  --accent: #0b5cff;
  --accent-soft: #edf4ff;
  --line: #d9e3f2;
  --surface: #ffffff;
  --draft: #f2f6fd;
  --draft-ink: #174ea6;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f4f7fb; }
body { margin: 0; min-height: 100vh; background: #f4f7fb; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 3px; border-radius: 8px; }
h1, h2, p, ul { margin-top: 0; }

.site-shell {
  width: min(980px, calc(100% - 32px));
  min-height: calc(100vh - 64px);
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgb(29 54 100 / 10%);
}

.site-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.desktop-nav { display: flex; align-items: center; gap: 10px; }
.nav-link {
  min-height: 44px;
  min-width: 86px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.nav-link[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.mobile-menu { display: none; position: relative; flex: 0 0 auto; }
.mobile-menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  border-radius: 10px;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 24px; height: 24px; }
.mobile-menu nav {
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 3;
  min-width: 170px;
  padding: 8px;
  display: grid;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgb(29 54 100 / 16%);
}
.mobile-menu .nav-link { justify-content: flex-start; }

.draft-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 10px 24px;
  color: var(--draft-ink);
  background: var(--draft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}
.draft-banner strong { letter-spacing: .02em; }

.page {
  flex: 1;
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 48px 32px 42px;
}
.page--privacy { width: min(840px, 100%); }
.hero { display: flex; align-items: flex-start; gap: 22px; }
.page-icon,
.row-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}
.page-icon { width: 68px; height: 68px; }
.page-icon svg { width: 34px; height: 34px; }
.row-icon { width: 42px; height: 42px; }
.row-icon svg { width: 22px; height: 22px; }

.hero-copy { min-width: 0; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h1 { margin-bottom: 6px; font-size: clamp(34px, 5vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.lead { margin-bottom: 6px; color: var(--ink); font-size: 20px; line-height: 1.45; }
.intro { max-width: 62ch; color: var(--muted); font-size: 16px; line-height: 1.65; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.contact-card,
.topic-list,
.policy-card,
.open-card {
  margin: 28px 0 0 90px;
  border: 1px solid #cbdcf8;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 100%);
}
.contact-card { max-width: 560px; padding: 18px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card h2 { margin-bottom: 5px; font-size: 17px; }
.contact-card p { margin-bottom: 4px; color: var(--muted); line-height: 1.55; }
.contact-card a { display: inline-block; margin-bottom: 6px; font-weight: 750; overflow-wrap: anywhere; }

.support-notes { margin: 26px 0 0 90px; max-width: 580px; }
.support-notes h2,
.open-card h2 { margin-bottom: 10px; font-size: 17px; }
.support-notes ul,
.open-card ul { margin-bottom: 0; padding-left: 22px; color: var(--ink); line-height: 1.75; }

.topic-list { overflow: hidden; background: var(--surface); }
.topic-list > h2 { margin: 0; padding: 14px 16px 10px; font-size: 17px; }
.topic-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.topic-copy { min-width: 0; }
.topic-copy strong { display: block; margin-bottom: 3px; font-size: 15px; }
.topic-copy span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.open-label { min-width: 58px; padding: 6px 10px; text-align: center; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.open-label--partial { color: #805000; background: #fff3d6; }
.open-label--approved { color: #17663a; background: #e8f7ef; }

.policy-card { padding: 18px; background: var(--surface); }
.policy-card h2 { margin-bottom: 10px; font-size: 17px; }
.policy-card p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }

.open-card { padding: 18px; background: #fbfcff; }
.open-card p { margin-bottom: 12px; color: var(--muted); line-height: 1.55; }
.open-card strong { color: var(--ink); }

.site-footer {
  min-height: 58px;
  margin-top: auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 680px) {
  .site-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .site-header { min-height: 62px; padding: 9px 16px; }
  .brand { font-size: 16px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .draft-banner { padding: 9px 16px; font-size: 12px; }
  .page, .page--privacy { padding: 28px 18px 32px; }
  .hero { gap: 14px; }
  .title-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .page-icon { width: 44px; height: 44px; }
  .page-icon svg { width: 23px; height: 23px; }
  h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .intro { font-size: 14px; line-height: 1.55; }
  .contact-card, .topic-list, .policy-card, .open-card, .support-notes { margin-left: 0; }
  .contact-card { margin-top: 22px; }
  .support-notes { margin-top: 22px; }
  .topic-list { margin-top: 22px; }
  .topic-row { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .row-icon { width: 36px; height: 36px; }
  .row-icon svg { width: 19px; height: 19px; }
  .open-label { grid-column: 2; justify-self: start; min-width: 52px; padding-inline: 8px; }
  .site-footer { padding: 14px 18px max(18px, env(safe-area-inset-bottom)); align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
