:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #1a2430;
  --text-muted: #5b6b7a;
  --border: #e4e9ee;
  --brand: #1770d4;
  --brand-dark: #0f5bb0;
  --brand-tint: #eaf2fd;
  --radius: 14px;
  --max-width: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161d;
    --surface: #161f29;
    --text: #eef2f6;
    --text-muted: #9aabb9;
    --border: #26313d;
    --brand: #4c9bf0;
    --brand-dark: #6fb0f5;
    --brand-tint: #16283b;
  }
}

:root[data-theme="dark"] {
  --bg: #10161d;
  --surface: #161f29;
  --text: #eef2f6;
  --text-muted: #9aabb9;
  --border: #26313d;
  --brand: #4c9bf0;
  --brand-dark: #6fb0f5;
  --brand-tint: #16283b;
}

:root[data-theme="light"] {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #1a2430;
  --text-muted: #5b6b7a;
  --border: #e4e9ee;
  --brand: #1770d4;
  --brand-dark: #0f5bb0;
  --brand-tint: #eaf2fd;
}

* { box-sizing: border-box; }

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

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

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

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  font-weight: 800;
}

.nav-group { display: flex; align-items: center; gap: 20px; }

nav.main { display: flex; gap: 24px; }
nav.main a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
nav.main a:hover { color: var(--brand); text-decoration: none; }

@media (max-width: 640px) {
  nav.main { display: none; }
}

.lang-switch {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.lang-switch:hover {
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
}

section { padding: 64px 0; }
section.tight { padding: 40px 0; }

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.hero .sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

h2.section-title {
  font-size: 26px;
  margin: 0 0 8px;
  text-align: center;
}

p.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  text-align: center;
  padding: 8px;
}

.step .num {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.step h3 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; }

.about-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.about-box p { margin: 0 0 12px; }
.about-box p:last-child { margin-bottom: 0; }

dl.entity {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 20px 0 0;
  font-size: 14px;
}

dl.entity dt { color: var(--text-muted); }
dl.entity dd { margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 13px;
}

footer.site .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer.site .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site .links a { color: var(--text-muted); }

.legal h1 {
  font-size: 28px;
  margin: 0 0 4px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 18px;
  margin: 32px 0 10px;
}

.legal p, .legal li {
  color: var(--text);
  font-size: 15px;
}

.legal ul { padding-left: 20px; }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
}

.placeholder {
  background: var(--brand-tint);
  border: 1px dashed var(--brand);
  color: var(--brand-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
