:root {
  color-scheme: light dark;
  --background: #f6f7f4;
  --surface: #ffffff;
  --surface-secondary: #eef1ec;
  --text: #1d211f;
  --muted: #68706b;
  --accent: #6f9474;
  --accent-soft: #e3ece3;
  --divider: #e2e5e1;
  --shadow: 0 18px 50px rgb(35 48 39 / 7%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111513;
    --surface: #181e1a;
    --surface-secondary: #202720;
    --text: #f0f3ef;
    --muted: #a7b0a9;
    --accent: #7fa783;
    --accent-soft: #26352a;
    --divider: #2b332d;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); }

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

.header-inner,
.page,
.site-footer {
  width: min(100% - 40px, 920px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex: 1;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a[aria-current="page"] { color: var(--text); }

.language-select {
  min-height: 40px;
  max-width: 140px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 0 34px 0 11px;
  font: inherit;
  font-size: .88rem;
}

.page { padding: 72px 0 90px; }

.hero { max-width: 720px; margin-bottom: 54px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.23; letter-spacing: -.025em; }
h1 { margin: 0 0 20px; font-size: clamp(2.15rem, 7vw, 3.8rem); }
h2 { margin: 0 0 12px; font-size: clamp(1.2rem, 4vw, 1.55rem); }
p { margin: 0; }

.lead { color: var(--muted); font-size: 1.12rem; }

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

.page-card {
  min-height: 180px;
  border: 1px solid var(--divider);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 22px;
  text-decoration: none;
}

.page-card span { color: var(--accent); font-weight: 700; }
.page-card p { margin-top: 8px; color: var(--muted); font-size: .94rem; }

.document { max-width: 760px; }

.document-section {
  border-top: 1px solid var(--divider);
  padding: 30px 0;
}

.document-section:first-of-type { border-top: 0; padding-top: 0; }
.document-section p + p { margin-top: 12px; }
.document-section ul { margin: 12px 0 0; padding-left: 1.25rem; }
.document-section li + li { margin-top: 8px; }

.notice {
  margin-top: 34px;
  border-radius: 14px;
  background: var(--accent-soft);
  padding: 18px 20px;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: .86rem;
}

@media (max-width: 720px) {
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 10px 18px; padding: 14px 0; }
  .brand { flex: 1; }
  .language-select { max-width: 135px; }
  .nav { order: 3; flex: 0 0 100%; justify-content: space-between; gap: 12px; padding-bottom: 2px; }
  .nav a { font-size: .82rem; white-space: nowrap; }
  .page { padding-top: 48px; }
  .page-grid { grid-template-columns: 1fr; }
  .page-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
