/* Shared styling for the legal pages. Kept as one file so the four documents
   cannot drift apart visually, and so a change here updates all of them. */
:root {
  --brand: #4361ee;
  --brand-deep: #2f3fb5;
  --ink: #1f2430;
  --muted: #5b6172;
  --line: #dbe1ea;
  --bg-soft: #f6f8fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

header.legal-head {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

header.legal-head .inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { color: var(--brand); }

header.legal-head nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  margin-left: 16px;
}

header.legal-head nav a:hover { color: var(--brand); }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 22px 80px;
}

h1 {
  font-size: 2.1rem;
  letter-spacing: -0.6px;
  margin: 0 0 6px;
}

.updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 30px;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.3px;
  margin: 38px 0 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

h3 { font-size: 1.02rem; margin: 24px 0 8px; }

p, li { color: #333a49; }

ul, ol { padding-left: 22px; }

li { margin-bottom: 7px; }

a { color: var(--brand); }

strong { color: var(--ink); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

th { background: var(--bg-soft); font-weight: 700; }

.table-wrap { overflow-x: auto; }

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 0.94rem;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Unfilled placeholders. Deliberately loud: if one of these ever reaches a
   published page it should be impossible to miss rather than blend in. */
.ph {
  background: #fff3bf;
  border-bottom: 2px solid #f0a500;
  padding: 0 4px;
  font-weight: 700;
  color: #7a5200;
  white-space: nowrap;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 30px;
}

.toc ol { margin: 8px 0 0; }
.toc li { margin-bottom: 4px; font-size: 0.93rem; }

footer.legal-foot {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 26px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer.legal-foot a { color: var(--muted); margin: 0 9px; }

@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  main { padding: 30px 18px 60px; }
}
