:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --text: #16181d;
  --muted: #5c6370;
  --line: #e6e8ec;
  --accent: #1a73e8;
  --accent-soft: #eaf1fd;
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -.01em;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 550;
  font-size: 15px;
}
.btn:hover { background: #1557b0; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 550;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 20px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: -.02em;
  font-weight: 650;
  margin: 0 0 12px;
}

.section-head {
  max-width: 600px;
  margin-bottom: 44px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
section.alt .card { background: #fff; }

.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.card p { color: var(--muted); margin: 0; font-size: 15px; }

.icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.icon svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 650;
}
.step h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; font-weight: 600; }
.legal p, .legal li { color: #30343c; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 7px; }

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 15px;
}
.callout p { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
th { background: var(--bg-soft); font-weight: 600; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 0 32px;
  font-size: 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 600;
}

footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 9px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

footer address {
  font-style: normal;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.7;
}

.foot-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216;
    --bg-soft: #16191f;
    --text: #e9ebef;
    --muted: #9aa1ad;
    --line: #262a32;
    --accent: #5b9cf8;
    --accent-soft: #1b2634;
  }
  :root:not([data-theme="light"]) header { background: rgba(16,18,22,.9); }
  :root:not([data-theme="light"]) .card,
  :root:not([data-theme="light"]) section.alt .card { background: #16191f; }
  :root:not([data-theme="light"]) .btn { color: #0d1117; }
  :root:not([data-theme="light"]) .legal p,
  :root:not([data-theme="light"]) .legal li { color: #c7ccd4; }
}
