/* Luminia: legal pages. Same tokens as the site, reading-first layout. */
:root {
  color-scheme: dark;
  --ink-1: #060E22;
  --surface-1: #0B1535;
  --surface-2: #0F1B42;
  --surface-3: #14214D;
  --mist-2: #969ECF;
  --lav: #A6AEF0;
  --lav-2: #C9CEF7;
  --paper: #F1F2F7;
  --text-2: #C3C8EC;
  --warn: #FFD48A;
  --line: rgba(166, 174, 240, 0.13);
  --line-strong: rgba(166, 174, 240, 0.26);
  --f-display: 'Cabinet Grotesk', 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.2vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink-1); scrollbar-color: #2D3470 var(--ink-1); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink-1);
  color: var(--text-2);
  font: 400 1.0625rem/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lav-2); text-decoration: underline; text-decoration-color: rgba(201, 206, 247, 0.4); text-underline-offset: 3px; }
.doc a:hover { color: var(--paper); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-1);
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 12px; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 22px var(--gutter);
}
.brand { display: inline-flex; border-radius: 6px; }
.brand img { display: block; height: 30px; width: auto; }
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.25s;
}
.back:hover { background: rgba(166, 174, 240, 0.08); color: var(--paper); }

.doc {
  flex: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}
.doc > * { max-width: 68ch; }

.draft {
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 212, 138, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 138, 0.35);
  color: #F6E3C0;
  font-size: 0.9688rem;
  line-height: 1.6;
}
.draft strong { color: var(--warn); font-weight: 600; }

h1 {
  margin: 0 0 12px;
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.updated { margin: 0 0 clamp(2rem, 4vw, 3rem); color: var(--mist-2); font-size: 0.9375rem; }
.lead { color: var(--paper); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; }
.statement {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  margin: clamp(2.5rem, 5vw, 3.25rem) 0 12px;
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--lav); }
strong { color: var(--paper); font-weight: 600; }
code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--lav-2);
  font: 500 0.9em var(--f-mono);
}

.facts {
  display: grid;
  grid-template-columns: minmax(9rem, max-content) 1fr;
  gap: 0;
  margin: 0 0 1em;
  border-radius: 18px;
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.facts dt, .facts dd { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); }
.facts dt { color: var(--mist-2); font-size: 0.9375rem; }
.facts dd { color: var(--paper); overflow-wrap: anywhere; }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }

/* Fields the owner still has to fill in */
.ph {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 212, 138, 0.12);
  color: var(--warn);
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--mist-2);
  font-size: 0.9375rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot a { color: var(--mist-2); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.foot a:hover, .foot a[aria-current='page'] { color: var(--paper); }
.foot p { margin: 0; }

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 2px; }
  .facts dd { border-top: 0; padding-top: 0; }
  .facts dt:first-of-type { border-top: 0; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #1A1F36; }
  html { background: #fff; }
  h1, h2, .lead, .statement, strong, .facts dd { color: #0B1026; }
  .updated, .facts dt, .foot, .draft, .draft strong { color: #3A4166; }
  .draft { background: none; box-shadow: inset 0 0 0 1px #CCD0E6; }
  .ph { background: #FFF3D6; color: #6B4A00; }
  .bar .back, .skip, .foot nav { display: none; }
  .facts { background: none; box-shadow: inset 0 0 0 1px #CCD0E6; }
  .facts dt, .facts dd { border-color: #CCD0E6; }
  a { color: #2D3470; }
}
