:root {
  --legal-ink: #14261d;
  --legal-forest: #0b3d29;
  --legal-green: #006527;
  --legal-accent: #84ca23;
  --legal-paper: #fffef9;
  --legal-rule: #dce6dd;
  --legal-muted: #607169;
}

html {
  scroll-padding-top: 108px;
}

body.legal-page {
  min-height: 100vh;
  margin: 0;
  color: var(--legal-ink);
  background-color: #f2f6f0;
  background-image:
    linear-gradient(rgba(11, 61, 41, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 41, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.legal-skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #07130d;
  background: var(--legal-accent);
  border-radius: 8px;
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

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

.legal-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 254, 249, 0.94);
  border-bottom: 1px solid rgba(11, 61, 41, 0.12);
  backdrop-filter: blur(18px);
}

.legal-brand img {
  display: block;
  width: min(224px, 52vw);
  height: auto;
}

.legal-home-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--legal-green);
  border: 1px solid rgba(0, 101, 39, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.legal-home-link:hover {
  color: var(--legal-green);
  background: rgba(132, 202, 35, 0.12);
  border-color: rgba(0, 101, 39, 0.35);
  text-decoration: none;
  transform: translateY(-1px);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(132, 202, 35, 0.2), transparent 29%),
    linear-gradient(125deg, #071d14 0%, #0b3d29 68%, #155b37 100%);
}

.legal-hero::after {
  position: absolute;
  right: -110px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(132, 202, 35, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(132, 202, 35, 0.04), 0 0 0 108px rgba(132, 202, 35, 0.025);
  content: "";
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.legal-eyebrow,
.legal-section__number,
.legal-sidebar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-eyebrow {
  margin: 0 0 18px;
  color: var(--legal-accent);
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-hero__summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.legal-source-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 0 17px;
  color: #07130d;
  background: var(--legal-accent);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.legal-source-link:hover {
  color: #07130d;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 860px);
  gap: clamp(36px, 6vw, 88px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(80px, 10vw, 140px);
}

.legal-sidebar__sticky {
  position: sticky;
  top: 110px;
}

.legal-sidebar__label {
  margin: 0 0 14px;
  color: var(--legal-green);
}

.legal-toc {
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  padding: 3px 18px 3px 0;
  border-right: 1px solid var(--legal-rule);
  scrollbar-width: thin;
}

.legal-toc a,
.legal-sidebar__all a {
  display: block;
  padding: 5px 0;
  color: var(--legal-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.legal-toc a:hover,
.legal-sidebar__all a:hover {
  color: var(--legal-green);
  text-decoration: none;
  transform: translateX(3px);
}

.legal-sidebar__all {
  margin-top: 32px;
}

.legal-document {
  min-width: 0;
  padding: clamp(30px, 5vw, 64px);
  background: var(--legal-paper);
  border: 1px solid rgba(11, 61, 41, 0.11);
  border-radius: 3px;
  box-shadow: 0 22px 70px rgba(11, 61, 41, 0.08);
}

.legal-section {
  padding-bottom: clamp(42px, 6vw, 72px);
  scroll-margin-top: 106px;
}

.legal-section + .legal-section {
  padding-top: clamp(42px, 6vw, 72px);
  border-top: 1px solid var(--legal-rule);
}

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

.legal-section__number {
  margin: 0 0 12px;
  color: var(--legal-green);
}

.legal-section h2 {
  margin: 0 0 24px;
  color: var(--legal-forest);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 34px 0 14px;
  color: var(--legal-forest);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
}

.legal-section p,
.legal-section li {
  color: #33483e;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 17px;
  line-height: 1.82;
}

.legal-section p + p,
.legal-section p + ol,
.legal-section ol + p {
  margin-top: 18px;
}

.legal-section ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 24px;
}

.legal-section a {
  color: var(--legal-green);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-definitions {
  display: grid;
  gap: 22px;
  margin: 18px 0 0;
}

.legal-definitions dt {
  margin: 0 0 6px;
  color: var(--legal-forest);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
}

.legal-definitions dd {
  margin: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--legal-rule);
  color: #33483e;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 17px;
  line-height: 1.82;
}

.legal-definitions dd:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section--transcript pre {
  margin: 0;
  overflow: visible;
  color: #33483e;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 16px;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--legal-rule);
}

.legal-section table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.legal-section th,
.legal-section td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--legal-rule);
  color: #33483e;
  font-size: 13px;
  line-height: 1.55;
}

.legal-section th {
  color: var(--legal-forest);
  background: #eef5ea;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.legal-section td ol {
  display: block;
  margin: 0;
  padding-left: 18px;
}

.legal-section td li {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
}

.legal-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 38px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.48);
  background: #050a05;
}

.legal-footer img {
  width: min(210px, 60vw);
  margin-bottom: 12px;
}

.legal-footer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

:focus-visible {
  outline: 3px solid rgba(132, 202, 35, 0.58);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .legal-hero__inner {
    animation: legal-rise 520ms ease-out both;
  }

  .legal-document {
    animation: legal-rise 620ms 100ms ease-out both;
  }

  @keyframes legal-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 900px) {
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-sidebar__sticky {
    position: static;
  }

  .legal-toc {
    display: flex;
    max-height: none;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    border-right: 0;
  }

  .legal-toc a {
    flex: 0 0 auto;
    padding: 8px 11px;
    background: rgba(255, 254, 249, 0.76);
    border: 1px solid var(--legal-rule);
    border-radius: 999px;
  }

  .legal-sidebar__all {
    display: none;
  }
}

@media (max-width: 600px) {
  .legal-nav {
    min-height: 68px;
  }

  .legal-home-link {
    width: 42px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .legal-hero {
    padding-top: 58px;
    padding-bottom: 66px;
  }

  .legal-document {
    margin-inline: -8px;
    padding: 30px 22px;
  }

  .legal-section--transcript pre {
    font-size: 14px;
    line-height: 1.7;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .legal-nav,
  .legal-sidebar,
  .legal-source-link,
  .legal-footer {
    display: none;
  }

  .legal-hero {
    padding: 0 0 32px;
    color: #000;
    background: none;
  }

  .legal-hero__summary,
  .legal-eyebrow {
    color: #333;
  }

  .legal-shell {
    display: block;
    max-width: none;
    padding: 0;
  }

  .legal-document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .legal-section {
    break-inside: avoid;
  }
}
