:root {
  color-scheme: light;
  --ink: #071722;
  --muted: #4f626d;
  --paper: #f7f4ec;
  --surface: #ffffff;
  --navy: #061c29;
  --blue: #1769e0;
  --yellow: #ffc845;
  --line: #071722;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

a { color: inherit; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 54px);
  color: white;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}

.legal-brand img { display: block; height: 30px; width: auto; }

.legal-header nav { display: flex; gap: 18px; font-size: 14px; font-weight: 750; }
.legal-header nav { margin-left: auto; }
.legal-header > .language-switcher { --ink: #d9f16f; --paper: #061924; }
.legal-header nav a { color: #d9e9f2; text-underline-offset: 4px; }

main {
  width: min(900px, calc(100% - 36px));
  margin: clamp(34px, 6vw, 76px) auto;
}

.legal-hero {
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--line);
}

.legal-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 12px;
  background: var(--yellow);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.08;
}

h1 { font-size: clamp(38px, 7vw, 66px); }
h2 { margin-top: 38px; font-size: clamp(22px, 3vw, 30px); }

.legal-summary {
  max-width: 68ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.legal-body {
  margin-top: 34px;
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.legal-body p, .legal-body li { max-width: 76ch; }
.legal-body p { margin: 14px 0 0; }
.legal-body ul { margin: 14px 0 0; padding-left: 22px; }
.legal-body li + li { margin-top: 8px; }

.legal-note {
  margin-top: 28px;
  padding: 16px 18px;
  background: #eaf2ff;
  border: 1px solid var(--line);
  border-left: 7px solid var(--blue);
  border-radius: 10px;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(900px, calc(100% - 36px));
  margin: 0 auto 44px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 620px) {
  .legal-header { align-items: flex-start; }
  .legal-header { flex-wrap: wrap; gap: 12px; }
  .legal-header nav { flex-direction: column; gap: 6px; text-align: right; }
  .legal-hero, .legal-body { border-radius: 14px; }
}

/* Brand cursor: an ink arrow with the logo's three lime diamonds, and a lime hand on anything clickable.
   Mouse and trackpad only; touch screens and text fields keep their own. */
@media (hover:hover) and (pointer:fine) {
  html { cursor: url('/brand/cursor/pointer.png') 3 2, auto; cursor: -webkit-image-set(url('/brand/cursor/pointer.png') 1x, url('/brand/cursor/pointer@2x.png') 2x) 3 2, auto; cursor: image-set(url('/brand/cursor/pointer.png') 1x, url('/brand/cursor/pointer@2x.png') 2x) 3 2, auto; }
  a[href],button:not(:disabled),summary,label:has(input[type=checkbox]),[role=button],select { cursor: url('/brand/cursor/hand.png') 12 2, pointer; cursor: -webkit-image-set(url('/brand/cursor/hand.png') 1x, url('/brand/cursor/hand@2x.png') 2x) 12 2, pointer; cursor: image-set(url('/brand/cursor/hand.png') 1x, url('/brand/cursor/hand@2x.png') 2x) 12 2, pointer; }
  input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),textarea { cursor: text; }
