:root {
  color-scheme: light;
  --ink: #253247;
  --muted-ink: #536478;
  --paper: #fffdf7;
  --forest: #315d52;
  --leaf: #6f9b68;
  --sun: #f7bd50;
  --outline: #102c4b;
  --shadow: 0 14px 34px rgba(37, 50, 71, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(247, 189, 80, 0.34), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(111, 155, 104, 0.27), transparent 28rem),
    #e8f0e6;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--outline);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
#legal-document,
.landing-content {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
}

.site-header {
  padding: clamp(2.2rem, 7vw, 5rem) 0 1.5rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--forest);
  font-size: 0.87rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1, h2 { line-height: 1.2; }

h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--forest);
  font-size: clamp(2rem, 7vw, 3.7rem);
  letter-spacing: -0.045em;
}

.brand-link {
  display: inline-block;
  max-width: 30rem;
  color: var(--forest);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  text-decoration-thickness: 0.13em;
  text-underline-offset: 0.2em;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.language-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.8rem;
  color: var(--forest);
  border: 2px solid var(--forest);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher img {
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.language-switcher button[aria-pressed="true"],
.language-switcher button:hover {
  color: #fff;
  background: var(--forest);
}

.landing-content,
.legal-content {
  margin-bottom: 4rem;
  padding: clamp(1.2rem, 5vw, 2.4rem);
  border: 1px solid rgba(49, 93, 82, 0.16);
  border-radius: 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.intro { margin-top: 0; color: var(--muted-ink); font-size: 1.2rem; }

.document-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.document-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.8rem;
  min-height: 10rem;
  padding: 1.2rem;
  border: 2px solid rgba(49, 93, 82, 0.22);
  border-radius: 1rem;
  color: var(--forest);
  font-size: 1.13rem;
  font-weight: 800;
  text-decoration: none;
}

.document-card small {
  grid-column: 2;
  color: var(--muted-ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.document-card:hover { border-color: var(--forest); background: #f2f8ed; }

.card-icon { color: var(--sun); font-size: 1.65rem; line-height: 1; }

.support-note {
  margin: 1.8rem 0 0;
  color: var(--muted-ink);
  font-size: 0.94rem;
}

.legal-content h1 { max-width: none; font-size: clamp(1.9rem, 6vw, 3rem); }
.legal-content h2 { margin: 2.1rem 0 0.45rem; color: var(--forest); font-size: 1.28rem; }
.legal-content h2:first-of-type { margin-top: 1.6rem; }
.legal-content p { margin: 0; }
.legal-content .policy-link { margin-top: 0.5rem; }
.updated { margin-top: 0.7rem !important; color: var(--muted-ink); font-size: 0.95rem; }
.loading-copy { color: var(--muted-ink); }
.error-copy { color: #8b2332; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--outline);
  outline-offset: 3px;
}

@media (max-width: 35rem) {
  .site-header, #legal-document, .landing-content { width: min(100% - 1rem, 52rem); }
  .landing-content, .legal-content { border-radius: 1rem; }
}
