:root {
  --ink: #1d1d1f;
  --graphite: #33333a;
  --muted: #6e6e73;
  --border: #e3e5e2;
  --canvas: #fafaf8;
  --soft: #f2f2f4;
  --green: #34c759;
  --green-dark: #18883a;
  --green-soft: #eef9f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgba(52, 199, 89, .38);
  outline-offset: 3px;
}

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

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 200;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-row {
  align-items: center;
  display: flex;
  gap: 28px;
  min-height: 68px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  gap: 10px;
}

.brand-context {
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  margin-left: 2px;
  padding-left: 12px;
}

.primary-nav {
  align-items: center;
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.primary-nav a {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
}

.primary-nav .nav-cta {
  background: var(--graphite);
  border-radius: 6px;
  color: #fff;
  min-height: 40px;
  padding: 8px 14px;
}

.primary-nav .nav-cta:hover {
  background: var(--ink);
  color: #fff;
}

.page-heading {
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
  padding: 76px 0 58px;
}

.eyebrow {
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  font-size: 3rem;
  line-height: 1.05;
}

.lede {
  color: var(--muted);
  font-size: 1.125rem;
  margin-top: 18px;
  max-width: 720px;
}

.effective {
  border-left: 3px solid var(--green);
  color: var(--graphite);
  font-size: .875rem;
  margin-top: 28px;
  padding: 5px 0 5px 14px;
}

.legal-grid {
  align-items: start;
  display: grid;
  gap: 68px;
  grid-template-columns: 210px minmax(0, 1fr);
  padding-bottom: 96px;
  padding-top: 60px;
}

.toc {
  position: sticky;
  top: 104px;
}

.toc strong {
  display: block;
  font-size: .75rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.toc nav {
  border-left: 1px solid var(--border);
  display: grid;
  gap: 1px;
}

.toc a {
  color: var(--muted);
  font-size: .8125rem;
  padding: 6px 0 6px 16px;
}

.toc a:hover {
  color: var(--green-dark);
}

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

.summary {
  background: var(--green-soft);
  border: 1px solid #c7e9cf;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 24px 26px;
}

.summary strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.summary p {
  color: #3f6048;
  font-size: .9375rem;
}

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

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

.legal-section h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 14px;
}

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

.legal-section p,
.legal-section li {
  color: var(--graphite);
  font-size: .96875rem;
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-section ul,
.legal-section ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0 22px;
  padding-left: 4px;
}

.legal-section a,
.notice a {
  color: var(--green-dark);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  border-left: 3px solid var(--green);
  color: var(--graphite);
  margin-top: 20px;
  padding: 3px 0 3px 16px;
}

.contact-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-link {
  background: var(--graphite);
  border-radius: 6px;
  color: #fff !important;
  display: inline-flex;
  font-size: .875rem;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none !important;
}

.contact-link:hover {
  background: var(--ink);
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--border);
  padding: 42px 0 28px;
}

.footer-row {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.footer-brand p {
  color: var(--muted);
  font-size: .75rem;
  margin-top: 8px;
}

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

.footer-nav a {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 650;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--ink);
}

.company-line {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .6875rem;
  margin-top: 28px;
  padding-top: 18px;
}

@media (max-width: 820px) {
  .nav-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 0;
  }

  .primary-nav {
    gap: 16px;
    margin-left: 0;
    order: 2;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .primary-nav a {
    white-space: nowrap;
  }

  .primary-nav .nav-cta {
    margin-left: auto;
  }

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

  .toc {
    position: static;
  }

  .toc nav {
    border-left: 0;
    border-top: 1px solid var(--border);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 10px;
  }

  .toc a {
    padding: 7px 12px 7px 0;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 32px, 1080px);
  }

  .brand-context {
    display: none;
  }

  .primary-nav .nav-cta {
    display: none;
  }

  .page-heading {
    padding: 52px 0 42px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .lede {
    font-size: 1rem;
  }

  .legal-grid {
    padding-bottom: 64px;
    padding-top: 38px;
  }

  .toc nav {
    grid-template-columns: 1fr;
  }

  .summary {
    padding: 20px;
  }

  .legal-section {
    padding: 32px 0;
  }

  .footer-row,
  .footer-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    gap: 12px;
    margin-top: 26px;
  }
}

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

@media print {
  .site-header,
  .toc,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page-heading,
  .legal-grid {
    padding: 24px 0;
  }

  .wrap {
    width: 100%;
  }
}
