:root {
  color-scheme: light;
  --green: #173f2f;
  --green-dark: #0b2b20;
  --green-soft: #6f8f62;
  --cream: #f7f1e5;
  --paper: #fdfcf8;
  --yellow: #f5aa1c;
  --ink: #18372b;
  --muted: #6f746f;
  --line: #e7e0d4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.7 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.legal-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--green);
}

.legal-header::after {
  content: '';
  position: absolute;
  right: -9rem;
  bottom: -13rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(245, 170, 28, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, .015), 0 0 0 10rem rgba(255, 255, 255, .012);
  pointer-events: none;
}

.topbar, .hero-inner, .content-grid, .footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  font: 400 21px/1 'DM Serif Display', serif;
  text-decoration: none;
}

.brand strong {
  color: var(--yellow);
  font-style: italic;
  font-weight: 400;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.back-link:hover {
  border-color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .07);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 94px 0 106px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin-bottom: 25px;
  font: 400 clamp(58px, 8.2vw, 112px)/.88 'DM Serif Display', serif;
  letter-spacing: -.045em;
}

h1 em { color: var(--yellow); font-weight: 400; }

.hero-copy {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 17px;
}

.updated {
  display: inline-flex;
  margin-top: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 170, 28, .4);
  border-radius: 999px;
  color: #ffc44c;
  background: rgba(255, 255, 255, .035);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 72px;
  padding: 80px 0 110px;
}

.index {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}

.index p {
  margin-bottom: 14px;
  color: var(--green-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.index nav { display: grid; gap: 9px; }
.index a { color: #68706b; font-size: 13px; text-decoration: none; }
.index a:hover { color: var(--green); }
.legal-copy { min-width: 0; }

.intro-card {
  margin-bottom: 52px;
  padding: 28px 30px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 14px 14px 0;
  color: #59645e;
  background: var(--cream);
}

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

.legal-section:last-child { margin-bottom: 0; border-bottom: 0; }

.section-number {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

h2 {
  margin-bottom: 24px;
  color: var(--ink);
  font: 400 clamp(35px, 4vw, 52px)/1 'DM Serif Display', serif;
  letter-spacing: -.025em;
}

h3 { margin: 28px 0 9px; color: var(--ink); font-size: 16px; line-height: 1.35; }
.legal-copy p, .legal-copy li { color: var(--muted); font-size: 15px; }
.legal-copy ul { display: grid; gap: 10px; margin: 18px 0 0; padding-left: 20px; }
.legal-copy strong { color: #43544b; }

.contact-box {
  padding: 26px;
  border-radius: 16px;
  color: rgba(255, 255, 255, .72);
  background: var(--green);
}

.contact-box strong { color: #fff; }
.contact-box a { color: #ffc44c; overflow-wrap: anywhere; }

.legal-footer { color: #fff; background: var(--green-dark); }
.footer-inner { padding: 66px 0 30px; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand { font-size: 35px; }
.footer-top p { max-width: 590px; margin: 22px 0 0; color: rgba(255, 255, 255, .52); font-size: 13px; }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links span { margin-bottom: 6px; color: var(--yellow); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-links a { color: rgba(255, 255, 255, .65); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  color: rgba(255, 255, 255, .3);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.go-to-top {
  position: fixed;
  z-index: 50;
  right: 26px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(245, 170, 28, .65);
  border-radius: 50%;
  color: var(--yellow);
  background: var(--green);
  box-shadow: 0 12px 28px rgba(11, 43, 32, .25);
  font: 400 27px/1 'DM Sans', sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}

.go-to-top:hover { color: var(--green); background: var(--yellow); }
.go-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 820px) {
  .hero-inner { padding: 72px 0 80px; }
  .content-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 54px; }
  .index { position: static; }
  .index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 560px) {
  .topbar, .hero-inner, .content-grid, .footer-inner { width: min(100% - 32px, 1180px); }
  .topbar { min-height: 68px; }
  .brand { font-size: 18px; }
  .back-link { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .back-link span { font-size: 18px; }
  .hero-inner { padding: 62px 0 70px; }
  h1 { font-size: clamp(52px, 16vw, 72px); }
  .hero-copy { font-size: 15px; }
  .content-grid { padding-bottom: 76px; }
  .index nav { grid-template-columns: 1fr; }
  .intro-card { padding: 22px; }
  .legal-section { margin-bottom: 38px; padding-bottom: 38px; }
  .footer-inner { padding-top: 52px; }
  .footer-meta { flex-direction: column; }
  .go-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
