/* Tight corners, the house rule across this product: the family's default
   radius tokens are redefined here rather than edited in family.css, which is
   a vendored copy and must stay byte for byte what the hub serves. */
body { --r-sm: 4px; --r: 5px; --r-lg: 8px; }

/* Long-form legal pages. Rides on family.css for tokens, type and buttons;
   everything here is layout for a column of text people actually have to read. */

body.legal {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text), system-ui, sans-serif;
  margin: 0;
}

.legal-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.legal-head-in {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.legal-brand svg { width: 28px; height: 28px; border-radius: 7px; display: block; }
.legal-brand span { font-family: var(--display), system-ui, sans-serif; font-weight: 700; font-size: 1rem; }
.legal-brand b { color: var(--accent); font-weight: 800; }
.legal-head-in nav { display: flex; gap: 18px; font-size: .9rem; }
.legal-head-in nav a { color: var(--ink-2); text-decoration: none; }
.legal-head-in nav a:hover { color: var(--accent); }

.legal-wrap { max-width: 820px; margin: 0 auto; padding: 48px 16px 80px; }

.legal-kicker {
  font-family: var(--display), system-ui, sans-serif;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-kicker::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--signal); }

.legal-wrap h1 {
  font-family: var(--display), system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.legal-date { color: var(--ink-3); font-size: .92rem; margin: 0 0 32px; }

.legal-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-2);
  border-left: 3px solid var(--signal);
  padding: 2px 0 2px 18px;
  margin: 0 0 40px;
}

.legal-wrap h2 {
  font-family: var(--display), system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  margin: 44px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal-wrap h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-wrap h3 { font-size: 1.02rem; font-weight: 700; margin: 24px 0 8px; }

.legal-wrap p, .legal-wrap li { line-height: 1.68; color: var(--ink-2); }
.legal-wrap p { margin: 0 0 14px; }
.legal-wrap ul { margin: 0 0 16px; padding-left: 20px; }
.legal-wrap li { margin-bottom: 7px; }
.legal-wrap strong { color: var(--ink); }
.legal-wrap a { color: var(--accent); }

.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .94rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 700; color: var(--ink); background: var(--mist); }
.legal-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }

.legal-note {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  margin: 0 0 20px;
}
.legal-note p:last-child { margin-bottom: 0; }

.legal-foot {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: .88rem;
}
.legal-foot a { color: var(--ink-2); text-decoration: none; margin-right: 16px; }
.legal-foot a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .legal-head-in nav a:not(.legal-nav-keep) { display: none; }
  .legal-wrap { padding-top: 32px; }
}
