:root {
  --green: #1f3b2d;
  --deep-green: #0f241a;
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --ink: #1e1e1e;
  --muted: #6f6a60;
  --line: #e8dcc8;
  --accent: #4caf7d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a { color: var(--green); }

.site-header {
  background: linear-gradient(135deg, var(--green), var(--deep-green));
  color: var(--cream);
  padding: 20px max(24px, calc((100% - 1040px) / 2));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}

.brand img { width: 28px; height: 28px; object-fit: contain; }

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 0;
}

.nav-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-subnav {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 7px;
  gap: 3px;
  background: var(--deep-green);
  border: 1px solid rgba(247, 241, 231, .2);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 36, 26, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-group:hover .nav-subnav,
.nav-group:focus-within .nav-subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-subnav a {
  border: 0;
  border-radius: 9px;
  white-space: nowrap;
}

.nav-subnav a:hover,
.nav-subnav a:focus {
  background: rgba(247, 241, 231, .14);
}

.nav-label {
  appearance: none;
  cursor: pointer;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(247, 241, 231, .22);
  font: inherit;
  font-size: .86rem;
  line-height: 1;
  padding: 10px 13px;
  border-radius: 999px;
  opacity: .9;
  transition: background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

.nav-group:hover .nav-label,
.nav-group:focus-within .nav-label {
  background: rgba(247, 241, 231, .14);
  border-color: rgba(247, 241, 231, .55);
  opacity: 1;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: .86rem;
  line-height: 1;
  padding: 10px 13px;
  border: 1px solid rgba(247, 241, 231, .22);
  border-radius: 999px;
  opacity: .9;
  transition: background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

nav a:hover, nav a:focus {
  background: rgba(247, 241, 231, .14);
  border-color: rgba(247, 241, 231, .55);
  opacity: 1;
}

main { max-width: 1040px; margin: 0 auto; padding: 52px 24px 88px; }

.hero { max-width: 720px; margin-bottom: 42px; }
h1, h2, h3 { color: var(--green); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 4rem); margin: 0 0 18px; }
h2 { margin-top: 42px; }
.lead { color: var(--muted); font-size: 1.1rem; }

.home-hero {
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 28px;
  min-height: 390px;
  margin-bottom: 76px;
  padding: clamp(30px, 6vw, 64px);
  color: var(--cream);
  background: radial-gradient(circle at 88% 16%, rgba(76, 175, 125, .38), transparent 30%), linear-gradient(135deg, var(--green), var(--deep-green));
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}
.home-hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -92px;
  bottom: -118px;
  border: 1px solid rgba(247, 241, 231, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(247, 241, 231, .04), 0 0 0 60px rgba(247, 241, 231, .03);
}
.home-hero-copy { position: relative; z-index: 1; max-width: 650px; align-self: center; }
.home-hero h1 { color: var(--cream); font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: -.055em; margin: 0 0 20px; }
.home-hero h1 em { color: #a8dbb9; font-style: normal; }
.home-hero .lead { max-width: 520px; color: rgba(247, 241, 231, .76); }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.home-hero .eyebrow { color: #a8dbb9; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 17px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .88rem; }
.button-light { color: var(--green); background: var(--cream); }
.button-dark { color: var(--cream); background: var(--green); }
.text-link { color: var(--cream); text-decoration: none; font-size: .88rem; }
.text-link span { color: #a8dbb9; }
.home-hero-note { align-self: end; position: relative; z-index: 1; padding: 22px; border-top: 1px solid rgba(247, 241, 231, .26); color: rgba(247, 241, 231, .72); }
.home-hero-note p { margin: 0 0 12px; font-size: .92rem; }
.home-hero-note a { color: var(--cream); text-decoration: none; font-size: .86rem; font-weight: 700; }
.note-mark { display: block; margin-bottom: 28px; color: #a8dbb9; font-size: 1.5rem; }
.home-section-heading { margin-bottom: 20px; }
.home-section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }

.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 220px;
  padding: 26px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 59, 45, .06);
}
.card:hover, .card:focus { border-color: var(--accent); transform: translateY(-2px); }
.card h2 { margin: 34px 0 10px; font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }
.card-number { color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.card-arrow { position: absolute; right: 24px; bottom: 22px; color: var(--green); font-size: 1.3rem; }
.rights-banner { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 68px; padding: 30px 34px; background: #e6efdf; border-radius: 18px; }
.rights-banner h2 { margin: 0 0 8px; font-size: 1.55rem; }
.rights-banner p:not(.eyebrow) { max-width: 600px; margin: 0; color: var(--muted); }

.document {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 0 0;
}
.document h1 {
  position: relative;
  margin-bottom: 48px;
  padding-bottom: 26px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -.04em;
  border-bottom: 1px solid var(--line);
}
.document h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 76px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}
.document h2 {
  margin-top: 44px;
  padding: 0 0 10px 16px;
  font-size: 1.28rem;
  border-left: 3px solid var(--accent);
}
.document h3 {
  margin: 30px 0 12px;
  color: var(--green);
  font-size: 1.08rem;
  line-height: 1.35;
}
main p, main li, .document dd {
  max-width: 720px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.document ol, .document ul { padding-left: 24px; }
.document li { padding-left: 6px; margin: 7px 0; }
.document section + section { margin-top: 34px; }
.document-meta {
  margin: -22px 0 36px;
  color: var(--muted);
  font-size: .92rem;
}
.document-note {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.legal-list li { margin: 12px 0; padding-left: 8px; }
.legal-definitions {
  display: grid;
  grid-template-columns: minmax(130px, .35fr) 1fr;
  gap: 10px 18px;
  max-width: 100%;
  margin: 18px 0;
}
.legal-definitions dt { color: var(--green); font-weight: 700; }
.legal-definitions dd { margin: 0; }
.summary-box {
  margin: 28px 0 40px;
  padding: 22px 24px;
  background: #e6efdf;
  border-radius: 16px;
}
.summary-box h2 { margin: 0 0 16px; padding-left: 14px; }
.summary-box p:last-child { margin-bottom: 0; }
.table-scroll {
  max-width: 100%;
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.document table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.5;
}
.document th, .document td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.document th { text-align: left; }
.document td {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.document thead th { background: #e6efdf; color: var(--green); }
.document tbody th { min-width: 150px; color: var(--green); }
.document tr:last-child th, .document tr:last-child td { border-bottom: 0; }
.placeholder {
  background: #fff5df;
  border-left: 4px solid #e8a838;
  color: #765516;
  padding: 14px 16px;
  border-radius: 8px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
  font-size: .9rem;
}

@media (max-width: 720px) {
  .site-header { display: block; }
  nav {
    justify-content: flex-start;
    margin-top: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  nav > a, .nav-group { flex: 0 0 auto; }
  .nav-group { max-width: none; }
  .nav-subnav {
    right: auto;
    left: 0;
  }
  .document-grid { grid-template-columns: 1fr; }
  main { padding-top: 32px; }
  .home-hero { display: block; min-height: 0; margin-bottom: 54px; padding: 30px 24px; }
  .home-hero-note { margin-top: 52px; }
  .rights-banner { display: block; padding: 26px 24px; }
  .rights-banner .button { margin-top: 24px; }
  .legal-definitions { grid-template-columns: 1fr; gap: 2px; }
  .legal-definitions dd { margin-bottom: 10px; }
}
