:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1d21;
  --muted: #5d606b;
  --border: #e6e3de;
  --accent: #1f5f8b;
  --accent-soft: #e8f0f6;
  --radius: 14px;
  --max: 960px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1b1e23;
    --text: #ecebe8;
    --muted: #a3a6ae;
    --border: #2b2f36;
    --accent: #7fb6dd;
    --accent-soft: #1d2a35;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
@media (max-width: 560px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-block: 14px;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 10px;
}

/* Hero */
.hero { padding-block: 72px 56px; }
@media (max-width: 560px) {
  .hero { padding-block: 44px 40px; }
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5.5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.lead {
  margin: 0 0 28px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 19px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }

/* Sections */
section { padding: 48px 0; border-top: 1px solid var(--border); }
h2 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.015em;
}
.section-intro { margin: 0 0 28px; color: var(--muted); max-width: 62ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }

.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 12px; }
  .details dd:last-child { margin-bottom: 0; }
}

/* Legal pages */
.prose { padding-block: 56px 64px; max-width: 70ch; }
.prose h1 { font-size: clamp(30px, 4.5vw, 40px); max-width: none; }
.prose h2 { font-size: 21px; margin-top: 36px; }
.prose p, .prose li { color: var(--text); }
.prose .updated { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; }
