:root {
  --ink: oklch(0.18 0.005 270);
  --ink-soft: oklch(0.46 0.005 270);
  --background: oklch(1 0 0);
  --surface: oklch(0.985 0.002 270);
  --line: oklch(0.92 0.003 270);
  --notice: oklch(0.96 0.035 82);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.wrap {
  width: min(100% - 48px, 900px);
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2147483647;
  background: var(--ink);
  color: var(--background);
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

.legal-hero {
  padding: 72px 0 38px;
}

.legal-hero h1 {
  max-width: 16ch;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.legal-hero .lede {
  max-width: 66ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 19px;
}

.legal-meta {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.draft-note {
  margin-top: 26px;
  border: 1px solid oklch(0.82 0.07 82);
  border-radius: 12px;
  background: var(--notice);
  padding: 14px 16px;
  color: var(--ink);
  font-size: 15px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 88px;
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  max-width: 28ch;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal-section h2[data-section-number]::before {
  content: attr(data-section-number) ". ";
}

.legal-section h3 {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.35;
}

.legal-section p,
.legal-section ul,
.legal-section ol,
.legal-section dl {
  max-width: 74ch;
  margin-top: 12px;
  color: var(--ink-soft);
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section strong,
.legal-section b,
.legal-section dt {
  color: var(--ink);
  font-weight: 600;
}

.legal-section dd + dt {
  margin-top: 16px;
}

.legal-section dd {
  margin-top: 4px;
  color: var(--ink-soft);
}

.boundary {
  margin-top: 20px;
  border-left: 3px solid var(--ink);
  background: var(--surface);
  padding: 18px 20px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}

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

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

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

tr:last-child td {
  border-bottom: 0;
}

th:last-child,
td:last-child {
  border-right: 0;
}

th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

td {
  color: var(--ink-soft);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.legal-links a {
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 4px;
}

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

  .legal-hero {
    padding: 48px 0 28px;
  }

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

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