:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f2f2f7;
  --text: #1c1c1e;
  --muted: #545458;
  --accent: #0066cc;
  --green: #1a7f37;
  --border: #d1d1d6;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f2f2f7;
    --muted: #aeaeb2;
    --accent: #409cff;
    --green: #30d158;
    --border: #38383a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 10; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.main ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.main a { text-decoration: none; font-weight: 500; }
nav.main a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

main { padding: 32px 0 56px; }

.hero { text-align: center; padding: 32px 0 16px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin: 24px 0 12px; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 620px; margin: 0 auto; }

.badge {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}
.card h2, .card h3 { margin-top: 0; font-size: 1.15rem; }
.card p { margin-bottom: 0; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 30px;
}

.legal h1 { font-size: 2rem; line-height: 1.2; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal .updated { color: var(--muted); }

.note {
  border-left: 4px solid var(--green);
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 8px;
}

details {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  padding: 24px 0 40px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
