:root {
  --ink: #17211f;
  --muted: #62746f;
  --line: #d8e0dd;
  --soft: #f3f6f5;
  --green: #087768;
  --green-dark: #055d52;
  --green-soft: #e8f4f1;
  --warning: #8b5500;
  --warning-soft: #fff7df;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--ink);
  margin: 0;
}

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

.legal-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.legal-brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.legal-brand img {
  border-radius: 8px;
  height: 42px;
  width: 42px;
}

.legal-brand span {
  display: grid;
}

.legal-brand small {
  color: var(--muted);
}

.legal-topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-topbar nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.legal-topbar nav a:hover,
.legal-topbar nav a:focus-visible {
  color: var(--green);
  text-decoration: underline;
}

.legal-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 54px 24px 80px;
}

.legal-hero {
  max-width: 780px;
}

.legal-eyebrow,
.legal-kicker {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 12px 0 18px;
}

.legal-hero > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-draft {
  background: var(--warning-soft);
  border: 1px solid #eccb86;
  border-radius: 8px;
  color: #5f430d;
  margin: 34px 0 42px;
  padding: 16px 18px;
}

.legal-draft p {
  line-height: 1.55;
  margin: 5px 0 0;
}

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

.legal-toc {
  display: grid;
  gap: 11px;
  position: sticky;
  top: 92px;
}

.legal-toc strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--green);
}

.legal-document {
  min-width: 0;
}

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

.legal-section-lead {
  border-top: 3px solid var(--green);
  margin-top: 34px;
  padding-top: 22px;
}

.legal-section-lead:first-child {
  margin-top: 0;
}

.legal-section h2 {
  font-size: 1.75rem;
  margin: 6px 0 14px;
}

.legal-section h3 {
  font-size: 1.08rem;
  margin: 0 0 12px;
}

.legal-section p,
.legal-section li,
.legal-section td,
.legal-section th {
  font-size: 0.93rem;
  line-height: 1.7;
}

.legal-section p {
  color: #42504d;
  margin: 10px 0;
}

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

.legal-facts,
.rules-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.legal-facts > div,
.rules-grid > div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
}

.legal-facts span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.rules-grid p {
  font-size: 0.84rem;
  margin: 5px 0 0;
}

.legal-table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: var(--ink);
}

.legal-contact-card {
  background: var(--green-soft);
  border: 1px solid #badbd3;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.legal-launch-list {
  background: var(--warning-soft);
  border: 1px solid #eccb86;
  border-radius: 8px;
  margin-top: 30px;
  padding: 24px;
}

.legal-launch-list h2 {
  font-size: 1.35rem;
}

.legal-footer {
  align-items: center;
  background: var(--soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.84rem;
  gap: 20px;
  justify-content: space-between;
  padding: 24px max(20px, calc((100vw - 1180px) / 2));
}

@media (max-width: 800px) {
  .legal-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    position: static;
  }

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

  .legal-toc {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    position: static;
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .legal-shell {
    padding: 34px 16px 60px;
  }

  .legal-topbar {
    padding: 12px 16px;
  }

  .legal-topbar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .legal-toc,
  .legal-facts,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }

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

@media print {
  .legal-topbar,
  .legal-toc,
  .legal-footer {
    display: none;
  }

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

  .legal-layout {
    display: block;
  }

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