:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --surface-2: #eaf2fc;
  --ink: #07134d;
  --text: #1b2547;
  --muted: #56658a;
  --border: #d9e5f3;
  --link: #0a5bd8;
  --blue: #0a5bd8;
  --sky: #1aa3e8;
  --cyan: #22d3ee;
  --hero-from: #06217a;
  --hero-to: #1492dc;
  --shadow: 0 10px 30px rgba(7, 19, 77, .08);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050b22;
    --surface: #0c1638;
    --surface-2: #11204b;
    --ink: #eef3ff;
    --text: #d9e2f8;
    --muted: #9db0d8;
    --border: #1c2c5c;
    --link: #6cc4ff;
    --hero-from: #041452;
    --hero-to: #0b5fae;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #050b22;
  --surface: #0c1638;
  --surface-2: #11204b;
  --ink: #eef3ff;
  --text: #d9e2f8;
  --muted: #9db0d8;
  --border: #1c2c5c;
  --link: #6cc4ff;
  --hero-from: #041452;
  --hero-to: #0b5fae;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--link); overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; }
.brand img { width: 36px; height: 36px; }
.brand span b { color: var(--sky); font-weight: 800; }
.site-nav { margin-left: auto; display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); }
@media (max-width: 560px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 8px; }
  .site-nav { margin-left: 0; width: 100%; gap: 4px 14px; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  overflow: hidden;
}
.hero .wrap { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.3fr 1fr; padding-top: 72px; padding-bottom: 80px; } }
.hero h1 { color: #fff; font-size: clamp(32px, 6vw, 52px); margin: 0 0 8px; letter-spacing: -.02em; }
.hero .tagline { color: #bfe9ff; font-weight: 700; margin: 0 0 16px; font-size: 18px; }
.hero p.lead { font-size: 18px; color: #e6f2ff; margin: 0 0 24px; max-width: 34em; }
.hero-logo { justify-self: center; width: min(260px, 70vw); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px;
}
.btn-light {
  display: inline-block; background: #fff; color: #06217a; text-decoration: none;
  border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px;
}

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--link);
}
.icon svg { width: 24px; height: 24px; }

.privacy-band { background: var(--surface-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

.link-list { display: grid; gap: 12px; }
.link-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; text-decoration: none; font-weight: 700; color: var(--ink);
}
.link-list a span { color: var(--muted); font-weight: 500; font-size: 14px; }
.link-list a:hover { border-color: var(--sky); }

/* Legal pages */
.page-head { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; }
.page-head .wrap { padding-top: 36px; padding-bottom: 36px; }
.page-head h1 { color: #fff; margin: 0 0 6px; font-size: clamp(28px, 5vw, 40px); }
.page-head p { margin: 0; color: #d7ecff; font-size: 15px; }
.legal { padding: 28px 0 56px; }
.legal .notice { border-left: 4px solid var(--sky); }
.legal .notice p { color: var(--text); margin: 0 0 6px; }
.legal .notice p:last-child { margin-bottom: 0; }
.legal details { margin: 16px 0; }
.legal summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.legal details ol { margin: 12px 0 0; padding-left: 22px; }
.legal details li { margin: 4px 0; }
.legal section { margin-top: 16px; }
.legal section h2 { font-size: 19px; margin: 0 0 8px; }
.legal section p { color: var(--text); margin: 0 0 10px; overflow-wrap: anywhere; }
.legal section p:last-child { margin-bottom: 0; }
.legal .source { font-size: 14px; }
.doc-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.doc-switch a {
  text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45); color: #fff;
}
.doc-switch a[aria-current="page"] { background: #fff; color: #06217a; }
.to-top { display: inline-block; margin-top: 24px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; display: grid; gap: 12px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--link); }
