/* Shared styling for the public trust documents: security, privacy, terms,
   and the trust hub. Same design language as the app itself, tuned for long
   reading rather than for a dashboard. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07080c;
  --surface: #0f1116;
  --surface2: #161820;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #e8eaf0;
  --muted: rgba(232,234,240,0.62);
  --subtle: rgba(232,234,240,0.38);
  --gold: #C7A867;
  --gold-dim: rgba(199,168,103,0.12);
  --sky: #6FA8DC;
  --sky-dim: rgba(111,168,220,0.12);
  --green: #4BAE8A;
  --green-dim: rgba(75,174,138,0.12);
  --red: #E05555;
  --red-dim: rgba(224,85,85,0.12);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --r: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  padding: 0 20px 96px;
}

.wrap { max-width: 760px; margin: 0 auto; }

/* ── masthead ── */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0 18px; margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { font-family: var(--serif); font-size: 19px; letter-spacing: 0.01em; }
.masthead nav { display: flex; gap: 20px; flex-wrap: wrap; }
.masthead nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--gold); }

/* ── type ── */
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 6vw, 46px); line-height: 1.14;
  letter-spacing: -0.015em; margin-bottom: 20px;
}
.standfirst { font-size: 19px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; }
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 27px; line-height: 1.25; letter-spacing: -0.01em;
  margin: 56px 0 16px; padding-top: 8px;
}
h3 { font-size: 16px; font-weight: 600; margin: 30px 0 10px; letter-spacing: 0.005em; }
p { margin-bottom: 16px; color: var(--muted); }
p strong, li strong { color: var(--text); font-weight: 600; }
a { color: var(--sky); text-decoration: none; border-bottom: 1px solid rgba(111,168,220,0.32); }
a:hover { border-bottom-color: var(--sky); }
ul, ol { margin: 0 0 18px 22px; color: var(--muted); }
li { margin-bottom: 9px; }
code {
  font-family: var(--mono); font-size: 13px;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px; color: var(--text);
  overflow-wrap: anywhere;
}
.updated { font-size: 13px; color: var(--subtle); margin-bottom: 40px; }

/* ── the claim block: the one sentence a page exists to say ── */
.claim {
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-dim), transparent 70%);
  padding: 20px 24px; border-radius: 0 var(--r) var(--r) 0;
  margin: 34px 0;
}
.claim p:last-child { margin-bottom: 0; }
.claim .big { font-family: var(--serif); font-size: 22px; line-height: 1.42; color: var(--text); }

/* ── cards ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px 24px; margin: 22px 0;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* ── can / cannot lists ── */
.cando { list-style: none; margin-left: 0; }
.cando li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--border); margin: 0;
}
.cando li:last-child { border-bottom: 0; }
.mark {
  flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 2px;
}
.mark.yes { background: var(--green-dim); color: var(--green); }
.mark.no  { background: var(--red-dim);   color: var(--red); }
.cando .what { color: var(--text); font-weight: 500; }
.cando .why  { color: var(--subtle); font-size: 14px; display: block; margin-top: 2px; line-height: 1.5; }

/* ── tables ── */
.table-scroll { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
td { color: var(--muted); }
td:first-child { color: var(--text); }

/* ── live proof widget ── */
.proof { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--r); padding: 24px; margin: 30px 0; }
.proof-btn {
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--gold); color: #14100a; border: none;
  padding: 12px 22px; border-radius: 9px;
}
.proof-btn:hover { filter: brightness(1.08); }
.proof-btn:disabled { opacity: 0.55; cursor: default; }
.proof-out { margin-top: 20px; font-size: 14px; }
.proof-row {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.proof-row:last-child { border-bottom: 0; }
.proof-row .reason { color: var(--subtle); font-size: 13px; display: block; margin-top: 2px; }
.verdict { font-weight: 600; padding: 12px 0 4px; }
.verdict.ok { color: var(--green); }
.verdict.bad { color: var(--red); }
.hint { font-size: 13px; color: var(--subtle); margin-top: 14px; }

/* ── faq ── */
details {
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
summary {
  cursor: pointer; color: var(--text); font-weight: 500; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; flex-shrink: 0; }
details[open] summary::after { content: '\2212'; }
details > p, details > ul { margin-top: 12px; margin-bottom: 0; }

/* ── footer ── */
footer {
  margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--subtle); line-height: 1.7;
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
footer a { color: var(--muted); border-bottom: 0; }
footer a:hover { color: var(--gold); }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 12px; top: 12px; background: var(--surface2); padding: 10px 14px; border-radius: 8px; }

@media (max-width: 620px) {
  body { padding: 0 16px 72px; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 12px; }
  h2 { font-size: 23px; margin-top: 44px; }
  .standfirst { font-size: 17px; }

  /* A table narrower than its content scrolls sideways, and a reader who does
     not notice the scroll reads half a sentence and stops. On a phone the rows
     become stacked blocks instead, each cell labelled by its column. */
  .table-scroll { overflow-x: visible; }
  table { min-width: 0; display: block; }
  thead, th { display: none; }
  tbody, tr, td { display: block; width: 100%; }
  tr {
    border: 1px solid var(--border); border-radius: var(--r);
    padding: 4px 2px 8px; margin-bottom: 12px; background: var(--surface);
  }
  td { border-bottom: 0; padding: 7px 14px; }
  td:first-child { color: var(--text); font-weight: 600; padding-top: 12px; }
  td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 2px;
  }
}

@media print {
  body { background: #fff; color: #000; }
  .proof, .masthead nav { display: none; }
}
