:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5f6878;
  --line: #dde2ea;
  --accent: #355f89;
  --accent-strong: #244766;
  --notice: #eef4fa;
  --shadow: 0 14px 40px rgba(24, 38, 58, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141b;
    --surface: #171d26;
    --text: #f0f3f7;
    --muted: #b0bac8;
    --line: #2d3745;
    --accent: #9bc7ef;
    --accent-strong: #c7e2fa;
    --notice: #1a2b3b;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover, a:focus-visible { color: var(--accent-strong); }

.site-header, .site-footer, .page-shell {
  width: min(100% - 32px, 980px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-header nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.page-shell { padding-bottom: 52px; }

.language-switch {
  position: sticky;
  top: 12px;
  z-index: 2;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-article, .hero, .resource-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-article {
  padding: clamp(24px, 5vw, 54px);
  border-radius: 20px;
}

.document-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.meta, .lead { color: var(--muted); }
.meta { margin: 12px 0 18px; font-size: 0.93rem; }
.lead { font-size: 1.08rem; }

.legal-article section { padding: 20px 0; }
.legal-article section + section { border-top: 1px solid var(--line); }
.legal-article p:last-child, .legal-article ul:last-child { margin-bottom: 0; }
.legal-article ul { padding-left: 24px; }

.document-separator {
  border: 0;
  height: 54px;
  margin: 0;
}

.notice {
  padding-inline: 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px;
  background: var(--notice);
}

.button-link {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.button-link:hover, .button-link:focus-visible {
  color: #ffffff;
  filter: brightness(0.92);
}

.hero {
  padding: clamp(30px, 7vw, 64px);
  border-radius: 20px;
  margin-bottom: 24px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  display: block;
  padding: 24px;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
}

.resource-card p { color: var(--muted); margin-bottom: 0; }

.site-footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 4px 0; }

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-grid { grid-template-columns: 1fr; }
  .legal-article { border-radius: 16px; }
}
