:root {
  --emerald-900: #00351d;
  --emerald-800: #004e27;
  --emerald-700: #006a39;
  --gold-500: #c9a227;
  --sapphire-700: #0f4f86;
  --ink: #13231a;
  --muted: #627268;
  --line: #dce6df;
  --paper: #fbfdfb;
  --surface: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--emerald-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sapphire-700);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--emerald-800);
  color: #ffffff;
  border-bottom: 4px solid var(--gold-500);
}

.header-inner,
.main-inner,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 10px;
  background: rgb(255 255 255 / 9%);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: block;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
}

.brand-tagline {
  display: block;
  margin-top: 2px;
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  line-height: 1.3;
}

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

.nav-links a {
  color: rgb(255 255 255 / 86%);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: #ffffff;
}

main {
  flex: 1;
}

.main-inner {
  padding: 56px 0 72px;
}

.hero {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--emerald-900);
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--emerald-800);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--emerald-900);
  color: #ffffff;
}

.button.secondary {
  background: #eef5f1;
  color: var(--emerald-900);
}

.button.secondary:hover {
  background: #e2ece6;
  color: var(--emerald-900);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 52px;
  align-items: start;
}

.legal-document {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--emerald-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-document h1 {
  margin: 0;
  color: var(--emerald-900);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.last-updated {
  margin: 18px 0 32px;
  color: var(--muted);
  font-size: 15px;
}

.legal-document h2 {
  margin: 38px 0 10px;
  color: var(--emerald-900);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-document p {
  margin: 0 0 18px;
  font-size: 16px;
}

.legal-sidebar {
  position: sticky;
  top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.legal-sidebar h2 {
  margin: 0 0 10px;
  color: var(--emerald-900);
  font-size: 16px;
  line-height: 1.3;
}

.legal-sidebar p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.legal-sidebar nav {
  display: grid;
  gap: 10px;
}

.legal-sidebar nav a {
  display: block;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f1f7f3;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-row nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 780px) {
  .header-inner,
  .main-inner,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-inner {
    padding: 34px 0 52px;
  }

  .hero {
    padding: 28px 0 34px;
  }

  .hero p {
    font-size: 17px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .legal-sidebar {
    position: static;
    order: -1;
  }
}
