:root {
  color-scheme: light;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --navy-950: #001b33;
  --navy-900: #012d54;
  --navy-800: #07395f;
  --navy-700: #0a466f;
  --green-700: #377628;
  --green-500: #4e9539;
  --green-300: #8bcb6b;
  --green-100: #dcefd5;
  --concrete-050: #f5f6f4;
  --concrete-100: #e8eceb;
  --concrete-200: #d7dfdf;
  --steel-700: #364d5a;
  --steel-600: #536672;
  --white: #ffffff;
  --page-bg: #f5f6f4;
  --surface: #ffffff;
  --surface-subtle: #eef1ef;
  --text: #012d54;
  --muted: #536672;
  --line: rgba(1, 45, 84, .16);
  --line-strong: rgba(1, 45, 84, .28);
  --line-inverse: rgba(255, 255, 255, .20);
  --shell: 1220px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(78, 149, 57, .18);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

p,
h1,
h2 {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 4px;
}

::selection {
  color: var(--navy-950);
  background: var(--green-300);
}

.wrap {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--navy-950);
  background: var(--green-300);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

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

.legal-hero {
  color: var(--white);
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.legal-hero-grid {
  min-height: clamp(205px, 22vw, 238px);
  display: flex;
  align-items: center;
  padding-block: 42px;
}

.legal-hero-copy {
  position: relative;
  width: min(760px, 100%);
  padding-bottom: 23px;
  animation: legal-enter .42s both var(--ease);
}

.legal-hero-copy::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 92px;
  height: 2px;
  background: var(--green-300);
  content: "";
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--green-300);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.kicker span {
  color: rgba(255, 255, 255, .38);
}

h1,
h2 {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  color: var(--white);
  font-size: clamp(42px, 5.8vw, 66px);
}

.hero-copy {
  max-width: 66ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
}

.legal-layout {
  padding: clamp(46px, 6vw, 76px) 0 clamp(76px, 9vw, 112px);
  background:
    linear-gradient(180deg, rgba(78, 149, 57, .035), transparent 220px),
    var(--page-bg);
}

.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  align-items: start;
  justify-content: center;
  gap: clamp(30px, 4.5vw, 56px);
}

.legal-sidebar {
  position: sticky;
  top: 106px;
}

.sidebar-label {
  margin: 0 0 11px;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.legal-docs {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.legal-docs a {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.legal-docs a span {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.legal-docs a strong {
  color: inherit;
  font-size: 14px;
  font-weight: 750;
}

.legal-docs a:hover {
  color: var(--text);
  background: rgba(78, 149, 57, .08);
}

.legal-docs a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-subtle);
  box-shadow: inset 3px 0 0 var(--green-500);
}

.legal-docs a[aria-current="page"] span {
  color: var(--green-700);
}

.legal-contact {
  display: grid;
  gap: 5px;
  margin-top: 24px;
  padding: 18px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.legal-contact > span {
  margin-bottom: 4px;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal-contact a {
  width: fit-content;
  max-width: 100%;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.legal-contact a:hover {
  color: var(--green-700);
}

.legal-card {
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--green-500);
  counter-reset: legal-section;
  animation: legal-enter .44s .04s both var(--ease);
}

.legal-card section {
  max-width: 72ch;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: legal-section;
}

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

h2 {
  font-size: clamp(23px, 2.3vw, 29px);
}

.legal-card h2::before {
  display: block;
  margin-bottom: 9px;
  color: var(--green-700);
  content: counter(legal-section, decimal-leading-zero);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
}

.legal-card--unnumbered h2::before {
  content: none;
}

.legal-card section > p,
.legal-card section > ul {
  margin: 15px 0 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal-card ul {
  padding-left: 21px;
}

.legal-card strong {
  color: var(--text);
}

.legal-card a {
  color: var(--green-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.legal-card a:hover {
  color: var(--navy-700);
}

.legal-card code {
  padding: .1em .34em;
  color: var(--text);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  font-size: .88em;
  overflow-wrap: anywhere;
}

@keyframes legal-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .legal-page .mobile-contact {
    display: none;
  }

  .legal-grid {
    grid-template-columns: minmax(0, 820px);
  }

  .legal-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line-strong);
  }

  .legal-docs a {
    min-height: 60px;
    border-bottom: 0;
  }

  .legal-docs a + a {
    border-left: 1px solid var(--line);
  }

  .legal-docs a[aria-current="page"] {
    box-shadow: inset 0 3px 0 var(--green-500);
  }

  .legal-contact {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px 24px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .legal-contact > span {
    margin: 0;
  }

  .legal-contact a:last-child {
    justify-self: end;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 30px, var(--shell));
  }

  .legal-hero-grid {
    min-height: 210px;
    padding-block: 36px;
  }

  .legal-hero-copy {
    padding-bottom: 20px;
  }

  .legal-hero-copy::after {
    width: 72px;
  }

  h1 {
    font-size: clamp(39px, 13vw, 54px);
  }

  .hero-copy {
    margin-top: 12px;
    font-size: 15px;
  }

  .legal-layout {
    padding-block: 38px 82px;
  }

  .legal-docs a {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    padding-inline: 9px;
  }

  .legal-docs a strong {
    font-size: 13px;
    white-space: nowrap;
  }

  .legal-contact {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .legal-contact a:last-child {
    justify-self: start;
  }

  .legal-card {
    padding: 25px 22px;
  }

  .legal-card section {
    padding: 27px 0;
  }

  .note {
    padding: 48px 16px 16px;
  }

  .note::before {
    top: 16px;
    left: 16px;
  }
}

@media (max-width: 360px) {
  .legal-docs a {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 3px;
  }

  .legal-card {
    padding-inline: 17px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}
