:root {
  --ink: #151512;
  --muted: #73736c;
  --line: #e5e5df;
  --paper: #f7f7f3;
  --surface: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 14px;
}

.legal-nav a { color: var(--ink); font-weight: 580; text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; }

.legal-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.12;
  font-weight: 640;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.legal-revision { margin: 12px 0 32px; color: var(--muted); font-size: 14px; }

.legal-document {
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.legal-document section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 630;
  letter-spacing: -.012em;
}

.legal-document p { margin: 8px 0 0; color: #3e3e39; }

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.legal-footer a { color: var(--ink); font-weight: 580; text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid #315efb; outline-offset: 3px; }

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.62; }
  .legal-page { padding-top: 24px; padding-bottom: 56px; }
  .legal-nav { margin-bottom: 32px; }
  h1 { font-size: 30px; }
  .legal-document { margin: 0 -4px; padding: 24px 20px; border-radius: 12px; }
  .legal-document section + section { margin-top: 26px; padding-top: 23px; }
  .legal-document h2 { font-size: 18px; }
  .legal-footer { align-items: flex-start; flex-direction: column; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .legal-page { max-width: none; padding: 0; }
  .legal-nav, .legal-footer { display: none; }
  .legal-document { padding: 0; border: 0; }
  .legal-document section + section { break-inside: avoid; }
}

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