:root {
  --background: #f4f7f4;
  --foreground: #17201b;
  --primary: #006633;
  --primary-dark: #004e27;
  --border: #dce5de;
  --muted: #5e6d63;
  --white: #ffffff;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 22%, rgba(0, 102, 51, 0.07), transparent 24rem),
    var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 10px 14px;
  font-weight: 800;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(220, 229, 222, 0.9);
  background: rgba(255, 255, 255, 0.93);
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand img {
  border-radius: 12px;
}

.brand > span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  color: #00552a;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 4px;
  color: #617067;
  font-size: 0.72rem;
  font-weight: 600;
}

.developer-link,
.inline-link,
.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.developer-link {
  color: #31543f;
  font-size: 0.86rem;
  font-weight: 700;
}

.developer-link:hover,
.inline-link:hover {
  color: var(--primary);
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(0, 58, 29, 0.98), rgba(0, 102, 51, 0.94)),
    var(--primary);
  color: var(--white);
}

.hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #baf4d3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.updated {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 13px;
  font-size: 0.76rem;
}

.updated span {
  color: rgba(255, 255, 255, 0.64);
}

.updated strong {
  font-weight: 800;
}

.page-grid {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  margin: -34px auto 80px;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  margin-top: 60px;
  padding: 4px 6px;
}

.toc > p {
  margin: 0 0 12px;
  color: #7b887e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc nav {
  display: grid;
  gap: 4px;
}

.toc a {
  border-left: 2px solid var(--border);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 0.8rem;
  line-height: 1.25;
  transition: 160ms ease;
}

.toc a:hover,
.toc a:focus-visible {
  border-left-color: #ce1126;
  color: var(--primary);
}

.policy-card {
  overflow: hidden;
  border: 1px solid #e1e9e3;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(13, 49, 29, 0.08);
}

.summary-card {
  border-bottom: 1px solid #e1e9e3;
  background: #effaf3;
  padding: 28px clamp(24px, 5vw, 56px);
}

.summary-card strong {
  color: #00552a;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-card p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #31543f;
  font-size: 0.94rem;
  line-height: 1.6;
}

.policy-section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  margin: 0 clamp(24px, 5vw, 56px);
  border-bottom: 1px solid #edf1ee;
  padding: 42px 0;
  scroll-margin-top: 96px;
}

.section-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #cde6d6;
  border-radius: 13px;
  background: #f0faf4;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

h2 {
  margin: 5px 0 14px;
  color: #14231a;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.section-copy {
  max-width: 740px;
  color: #4b5b50;
  font-size: 0.95rem;
  line-height: 1.72;
}

.section-copy p {
  margin: 0 0 14px;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.section-copy strong {
  color: #213c2b;
}

.inline-link {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-button {
  margin-top: 6px;
  border-radius: 11px;
  background: var(--primary);
  color: var(--white);
  padding: 11px 15px;
  font-size: 0.86rem;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.contact-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

footer {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: #f7f9f7;
  padding: 26px clamp(24px, 5vw, 56px);
}

footer img {
  flex: 0 0 auto;
  border-radius: 9px;
}

footer p {
  max-width: 720px;
  margin: 1px 0 0;
  color: #68766c;
  font-size: 0.75rem;
  line-height: 1.55;
}

a:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(0, 102, 51, 0.35);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }

  .policy-card {
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
    padding-inline: 18px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .developer-link span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .developer-link span:last-child {
    font-size: 1.25rem;
  }

  .hero-inner,
  .page-grid {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    padding: 54px 0 65px;
  }

  .updated {
    align-items: flex-start;
    border-radius: 14px;
    flex-direction: column;
    gap: 2px;
  }

  .page-grid {
    margin-top: -26px;
  }

  .policy-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }

  .section-number {
    width: 40px;
    height: 40px;
  }
}

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

  * {
    transition: none !important;
  }
}
