:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #27231d;
  --muted: #6f675d;
  --line: #ded6ca;
  --accent: #716b86;
  --accent-ink: #50495f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Atkinson Hyperlegible", Atkinson, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
}

a {
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration-color: rgba(113, 107, 134, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

.site-shell {
  margin: 0 auto;
  max-width: 900px;
  padding: 32px 20px 56px;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 44px;
  padding-bottom: 18px;
}

.brand {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.language-switcher {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
}

.language-switcher a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  min-width: 40px;
  padding: 9px 10px;
  text-align: center;
  text-decoration: none;
}

.language-switcher a[aria-current="true"] {
  background: var(--accent);
  color: white;
}

.hero,
.legal-document {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(39, 35, 29, 0.08);
  padding: clamp(28px, 6vw, 52px);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Merriweather, Georgia, ui-serif, serif;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.15rem, 7vw, 4rem);
  letter-spacing: 0;
  margin: 0 0 18px;
}

h2 {
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  margin: 34px 0 10px;
  padding-top: 24px;
}

p,
li {
  color: var(--muted);
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 18px;
  padding-left: 1.25rem;
}

.lede {
  color: var(--ink);
  font-size: 1.15rem;
  max-width: 670px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent-ink);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.notice {
  background: rgba(83, 107, 56, 0.09);
  border: 1px solid rgba(83, 107, 56, 0.22);
  border-radius: 8px;
  color: var(--accent-ink);
  margin: 24px 0;
  padding: 14px 16px;
}

.site-footer {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 28px;
  text-align: center;
}

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

  .header-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .site-shell {
    padding-top: 22px;
  }
}
