:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --text: #111412;
  --muted: #5e665f;
  --soft: #eef2ec;
  --line: rgba(17, 20, 18, 0.1);
  --brand: #315b43;
  --brand-strong: #244633;
  --accent: #c7e7d3;
  --focus: #0f7a4f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(199, 231, 211, 0.34), rgba(247, 248, 245, 0) 320px),
    var(--bg);
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 122, 79, 0.24);
  outline-offset: 3px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.brand-name {
  display: grid;
  gap: 1px;
}

.brand-name span:first-child {
  font-size: 15px;
}

.brand-name span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

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

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.language-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
}

.language-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 56px;
}

.hero {
  max-width: 760px;
  padding: 48px 0 36px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.document h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.48;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 760;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.trust-line li,
.toc a,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 9px 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.content {
  max-width: 780px;
}

.toc {
  position: sticky;
  top: 92px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.toc a {
  text-decoration: none;
}

.section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

p,
li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  list-style: none;
  padding: 18px 18px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 800;
}

details[open] summary::after {
  content: "-";
}

.faq-body {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.lang-block[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .header-inner {
    width: min(100% - 32px, 720px);
    min-height: 64px;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    display: none;
  }

  .page {
    width: min(100% - 32px, 720px);
    padding-top: 44px;
  }

  .hero {
    padding-top: 34px;
  }

  .split {
    display: block;
  }

  .toc {
    position: static;
    margin: 12px 0 28px;
  }

  .footer-inner {
    width: min(100% - 32px, 720px);
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-name span:last-child {
    display: none;
  }

  .language-switch button {
    min-width: 36px;
    padding: 7px 8px;
  }

  h1 {
    font-size: 40px;
  }

  .actions .button {
    width: 100%;
  }

  .trust-line li {
    width: 100%;
  }
}
