:root {
  color-scheme: dark;
  --bg: #07101f;
  --surface: #0e1a2d;
  --surface-soft: #13233a;
  --text: #f6f9ff;
  --muted: #a9b8cd;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #56d7b0;
  --accent-strong: #35bd92;
  --blue: #69a7ff;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(54, 128, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 10% 35%, rgba(55, 202, 159, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 31, 0.9);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; background: #fff; border-radius: 11px; padding: 6px 10px; }
.brand img { display: block; width: 170px; height: 34px; object-fit: contain; }
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 0.94rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #032019;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(53, 189, 146, 0.18);
}
.button:hover { background: #70e6c1; }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.hero { padding: 104px 0 78px; text-align: center; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; }
h1 { max-width: 820px; margin: 16px auto 22px; font-size: clamp(2.6rem, 7vw, 5.2rem); }
.hero-copy { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.trust-row { margin: 54px auto 0; max-width: 820px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust-item { padding: 18px; background: rgba(14, 26, 45, 0.76); border: 1px solid var(--line); border-radius: 18px; }
.trust-item strong { display: block; }
.trust-item span { color: var(--muted); font-size: 0.9rem; }
.section { padding: 76px 0; }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section h2 { margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head p, .muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(19,35,58,.94), rgba(11,23,40,.94)); }
.card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #061a15; background: var(--accent); font-weight: 900; }
.card h3 { margin: 20px 0 10px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.band { border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 6vw, 58px); background: linear-gradient(135deg, rgba(38,88,158,.27), rgba(30,136,105,.2)); }
.band h2 { margin-top: 0; }
.steps { counter-reset: item; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,26,45,.72); }
.step::before { counter-increment: item; content: counter(item); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #071427; font-weight: 900; }
.step strong { display: block; margin-bottom: 3px; }
.step span { color: var(--muted); }
.legal { padding: 72px 0 90px; }
.legal article { max-width: 820px; }
.legal h1 { margin: 12px 0 8px; font-size: clamp(2.35rem, 6vw, 4rem); }
.legal .updated { color: var(--muted); margin-bottom: 42px; }
.legal h2 { margin-top: 42px; font-size: 1.55rem; }
.legal h3 { margin-top: 28px; font-size: 1.15rem; }
.legal p, .legal li { color: #c2cee0; }
.legal a { color: #8fc0ff; }
.notice { padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 8px 14px 14px 8px; }
.data-table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.data-table th, .data-table td { padding: 13px; text-align: left; border: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--surface-soft); }
.support-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

@media (max-width: 780px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 64px; }
  .nav-links a:not(.button) { display: none; }
  .hero { padding-top: 72px; }
  .trust-row, .grid, .support-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .data-table { display: block; overflow-x: auto; }
}

body.legal-doc {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --text: #111827;
  --muted: #5b6472;
  --line: #d9dee7;
  --accent: #111827;
  --blue: #111827;
  background: #ffffff;
  color: #111827;
}

body.legal-doc .site-header {
  position: static;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: none;
}

body.legal-doc .nav {
  min-height: 64px;
}

body.legal-doc .nav-links {
  color: #4b5563;
}

body.legal-doc .nav-links a:not(.button) {
  display: inline-flex;
}

body.legal-doc .nav-links a:hover,
body.legal-doc .nav-links a:focus-visible {
  color: #111827;
}

body.legal-doc .legal {
  padding: 48px 0 72px;
}

body.legal-doc .legal article {
  max-width: 860px;
}

body.legal-doc .legal h1 {
  max-width: none;
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

body.legal-doc .legal h2 {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
}

body.legal-doc .legal h3 {
  color: #111827;
}

body.legal-doc .legal p,
body.legal-doc .legal li {
  color: #1f2937;
}

body.legal-doc .legal .updated {
  color: #6b7280;
  margin-bottom: 30px;
}

body.legal-doc .legal a {
  color: #0f5fb8;
}

body.legal-doc .notice {
  color: #1f2937;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #9ca3af;
  border-radius: 4px;
  box-shadow: none;
}

body.legal-doc .data-table th,
body.legal-doc .data-table td {
  border: 1px solid #d1d5db;
  color: #1f2937;
}

body.legal-doc .data-table th {
  background: #f3f4f6;
  color: #111827;
}

body.legal-doc .site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
}

body.legal-doc .footer-links a {
  color: #4b5563;
}

@media (max-width: 420px) {
  .brand { padding: 5px 7px; }
  .brand img { width: 146px; height: 30px; }
}
