:root {
  color-scheme: light;
  --canvas: oklch(95.8% 0.027 154);
  --surface: oklch(98.8% 0.013 82);
  --surface-soft: oklch(93.5% 0.04 160);
  --text: oklch(24% 0.025 176);
  --muted: oklch(43% 0.027 176);
  --border: oklch(82% 0.024 154);
  --brand: oklch(43% 0.09 174);
  --brand-deep: oklch(31% 0.075 174);
  --accent: oklch(63% 0.13 72);
  --disc-d: oklch(50% 0.145 34);
  --disc-i: oklch(58% 0.13 67);
  --disc-s: oklch(47% 0.105 161);
  --disc-c: oklch(45% 0.105 246);
  --disc-d-soft: oklch(92.5% 0.045 37);
  --disc-i-soft: oklch(92% 0.058 82);
  --disc-s-soft: oklch(93.5% 0.04 160);
  --disc-c-soft: oklch(93% 0.034 244);
  --font-body: "Aptos", "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --text-xs: 0.8125rem;
  --text-sm: 1rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-xl: 1.5rem;
  --text-4xl: clamp(2.2rem, 5vw, 3.5rem);
  --leading-title: 1.12;
  --leading-body: 1.66;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  overflow-x: hidden;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--disc-i) 18%, transparent), transparent 32%),
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--disc-c) 16%, transparent), transparent 30%),
    linear-gradient(180deg, oklch(98.5% 0.014 154), var(--canvas));
  color: var(--text);
}

.legal-shell {
  width: min(900px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px) 0 clamp(42px, 6vw, 56px);
}

.legal-header,
.legal-section,
.legal-footer {
  background: oklch(98.8% 0.013 82 / 0.9);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  border-radius: 28px;
}

.legal-company-line {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.legal-section:nth-of-type(4n + 1) {
  background: linear-gradient(145deg, var(--disc-d-soft), var(--surface));
}

.legal-section:nth-of-type(4n + 2) {
  background: linear-gradient(145deg, var(--disc-i-soft), var(--surface));
}

.legal-section:nth-of-type(4n + 3) {
  background: linear-gradient(145deg, var(--disc-s-soft), var(--surface));
}

.legal-section:nth-of-type(4n + 4) {
  background: linear-gradient(145deg, var(--disc-c-soft), var(--surface));
}

.legal-header {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3.6vw, 30px);
  margin-bottom: 14px;
}

.legal-section,
.legal-footer {
  padding: clamp(20px, 3vw, 24px);
  margin-bottom: 12px;
}

.eyebrow {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  line-height: 1.06;
  max-width: 13ch;
}

h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-title);
  margin-bottom: 12px;
}

p,
li {
  max-width: 65ch;
  color: var(--muted);
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

ul,
ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.lede {
  font-size: var(--text-md);
  line-height: 1.64;
  max-width: 58ch;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand-deep);
  font-size: var(--text-sm);
  font-weight: 600;
}

.section-grid {
  display: grid;
  gap: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: oklch(99% 0.012 82);
  text-decoration: none;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--brand) 18%, transparent);
}

a:focus-visible {
  outline: 3px solid #174f79;
  outline-offset: 3px;
}

.back-link:hover,
.back-link:focus-visible {
  background: var(--brand-deep);
  color: oklch(99% 0.012 82);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 18%, transparent);
}

.back-link:active {
  box-shadow: none;
}

.small-note {
  font-size: var(--text-sm);
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(100vw - 20px, 100%);
    padding: 18px 0 34px;
  }

  .legal-header,
  .legal-section,
  .legal-footer {
    border-radius: 22px;
  }

  .legal-header {
    padding: 22px 20px 24px;
  }

  .legal-section,
  .legal-footer {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .legal-shell {
    width: min(100vw - 16px, 100%);
  }

  h1 {
    max-width: 12ch;
  }

  .meta-pill,
  .back-link {
    width: 100%;
  }
}
