/*
 * legal.css: layout for the notice and terms page only.
 *
 * NO PALETTE HERE. Colour and type come from tokens.css, which is the fleet palette served
 * verbatim beside this sheet, so a theme change reaches this page without an edit and this page
 * cannot drift from the rest of the estate. This file carries measure, rhythm and nothing else.
 */

:root { --legal-measure: 68ch; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
  line-height: 1.6;
}

main {
  max-width: var(--legal-measure);
  margin: 0 auto;
  padding: 72px 20px 96px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.head { display: flex; flex-direction: column; gap: 10px; }

.kicker {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker.big { font-size: 13px; margin-bottom: 4px; }

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h2 {
  margin: 34px 0 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p { margin: 0 0 12px; }

.sub { color: var(--muted); font-size: 14.5px; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { border-bottom-color: currentColor; }

section { display: flex; flex-direction: column; }
section + section { border-top: 1px solid var(--line); padding-top: 6px; }

.table-wrap { overflow-x: auto; margin: 6px 0 16px; }

table.grid { border-collapse: collapse; width: 100%; font-size: 13.5px; }

table.grid th, table.grid td {
  text-align: left;
  vertical-align: top;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
}

table.grid thead th { color: var(--muted); font-weight: 500; }

table.grid tbody th { font-weight: 600; width: 32%; }

.foot { border-top: 1px solid var(--line); padding-top: 18px; }

@media (max-width: 640px) {
  main { padding: 40px 18px 64px; }
  table.grid tbody th { width: auto; }
}
