:root {
  color-scheme: light;
  --ink: #102018;
  --muted: #56615b;
  --paper: #f7f8f5;
  --card: #ffffff;
  --line: #dfe5dc;
  --gate: #242b2b;
  --accent: #a0f100;
  --accent-soft: #eaffbf;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: #315f00;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #1f3d00;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  background: var(--gate);
  color: #ffffff;
}

.header-inner,
.page-shell,
.site-footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.wordmark {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark-dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 650;
}

.site-nav a {
  color: #eef2ef;
  text-decoration: none;
}

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

.page-shell {
  padding: 76px 0 92px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #497c00;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 4.4rem);
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.effective-date {
  display: inline-flex;
  margin: 28px 0 0;
  padding: 7px 12px;
  border: 1px solid #bde97b;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #294800;
  font-size: 0.82rem;
  font-weight: 700;
}

.notice {
  margin: 38px 0 0;
  padding: 22px 24px;
  border-left: 5px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--gate);
  color: #f4f7f5;
}

.notice strong {
  color: var(--accent);
}

.contents {
  margin: 54px 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.contents h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.contents ol {
  columns: 2;
  margin: 0;
  padding-left: 22px;
}

.contents li {
  padding: 3px 18px 3px 0;
  break-inside: avoid;
}

.contents a {
  color: var(--ink);
}

.legal-section {
  scroll-margin-top: 30px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.legal-section h3 {
  margin: 26px 0 8px;
  font-size: 1.08rem;
}

.legal-section p,
.legal-section ul {
  margin-top: 0;
}

.legal-section li + li {
  margin-top: 10px;
}

.legal-section strong {
  color: #0c1611;
}

.legal-callout {
  margin: 22px 0;
  padding: 20px 22px;
  border: 1px solid #bde97b;
  border-radius: 14px;
  background: var(--accent-soft);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.contact-card {
  padding: 28px;
  border-radius: 18px;
  background: var(--gate);
  color: #eef2ef;
}

.contact-card a {
  color: var(--accent);
}

.contact-card strong {
  color: #ffffff;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: #18201f;
  color: #c6cfca;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #e9efeb;
}

.legal-home {
  min-height: calc(100vh - 132px);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.legal-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.legal-card:hover {
  transform: translateY(-3px);
  border-color: #a9d765;
  box-shadow: 0 16px 42px rgba(31, 47, 38, 0.08);
  color: var(--ink);
}

.legal-card h2 {
  margin: 0;
  font-size: 1.55rem;
}

.legal-card p {
  margin: 14px 0 26px;
  color: var(--muted);
}

.legal-card span {
  margin-top: auto;
  color: #3f7000;
  font-weight: 750;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .page-shell,
  .site-footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  .page-shell {
    padding: 54px 0 72px;
  }

  .contents ol {
    columns: 1;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .contents {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .legal-section {
    break-inside: avoid;
  }

  a {
    color: #000000;
  }
}
