:root {
  --ink: #080b0f;
  --paper: #f4f6f1;
  --white: #ffffff;
  --muted: #626a76;
  --line: #d7dcd5;
  --lime: #beff2d;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.legal-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), 1160px);
  min-height: 72px;
  margin: 12px auto 0;
  padding: 8px;
  color: var(--white);
  background: rgba(8, 11, 15, 0.96);
  border: 1px solid #373c43;
  border-radius: 8px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.legal-mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 950;
}

.legal-actions,
.legal-language {
  display: flex;
  align-items: center;
}

.legal-actions {
  gap: 8px;
}

.legal-language {
  gap: 2px;
  padding: 3px;
  border: 1px solid #4a5059;
  border-radius: 6px;
}

.legal-language button,
.legal-back {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 850;
}

.legal-language button {
  min-width: 42px;
  color: #c8ccd2;
  background: transparent;
  cursor: pointer;
}

.legal-language button.is-active {
  color: var(--ink);
  background: var(--lime);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--white);
  text-decoration: none;
  background: #262b31;
}

.legal-page {
  width: min(calc(100% - 40px), var(--max));
  margin: 64px auto 80px;
}

.legal-kicker,
.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.legal-kicker {
  color: #365200;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 16px 0 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

.legal-lead {
  margin: 40px 0 56px;
  padding: 24px 0 24px 24px;
  border-left: 6px solid var(--lime);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.45;
}

section {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

section p,
section ul {
  margin: 0;
  color: #363c45;
  overflow-wrap: anywhere;
}

section ul {
  padding-left: 20px;
}

section li + li {
  margin-top: 12px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.legal-footer a {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  html {
    scroll-behavior: auto;
  }

  .legal-bar {
    position: relative;
    top: auto;
    width: calc(100% - 16px);
    min-height: 64px;
    margin-top: 8px;
  }

  .legal-brand > span:last-child,
  .legal-back {
    display: none;
  }

  .legal-mark {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .legal-page {
    width: calc(100% - 32px);
    margin: 44px auto 56px;
  }

  h1 {
    font-size: clamp(26px, 7.2vw, 40px);
  }

  .legal-lead {
    margin: 32px 0 40px;
    padding: 16px 0 16px 16px;
    font-size: 18px;
  }

  section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .legal-footer {
    flex-direction: column;
    width: calc(100% - 32px);
  }
}

@media print {
  body {
    background: var(--white);
    font-size: 10pt;
  }

  .legal-bar {
    display: none;
  }

  .legal-page {
    width: auto;
    margin: 0;
  }

  h1 {
    font-size: 30pt;
  }

  .legal-lead {
    margin: 8mm 0;
    font-size: 13pt;
  }

  section {
    grid-template-columns: 45mm 1fr;
    gap: 6mm;
    padding: 5mm 0;
    break-inside: avoid;
  }

  .legal-footer {
    width: auto;
    padding-bottom: 0;
  }
}
