/* The four legal pages (/privacy, /terms, /business-terms, /dpa).
 * Pure black, grey cards, ember links, like the app. No inline styles or
 * scripts anywhere, because the business portal's CSP allows 'self' only. */
:root {
  --night: #000000;
  --smoke: #141414;
  --line: #262626;
  --ember: #FF7A3D;
  --bone: #EDE7DC;
  --ash: #8B948F;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 16.5px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
a { color: var(--ember); }
a:hover { text-decoration-thickness: 2px; }
code { font-size: .92em; background: #1f1f1f; padding: 1px 5px; border-radius: 5px; }

.top, .brand, main { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 8px;
}
.back { text-decoration: none; font-size: .95rem; }
.lang-switch { display: flex; align-items: center; gap: 4px; color: var(--ash); }
.lang-switch button {
  background: none; border: 0; color: var(--ash); font: 600 .95rem/1 system-ui, sans-serif;
  padding: 10px 8px; cursor: pointer; border-radius: 8px;
}
.lang-switch button[aria-pressed="true"] { color: var(--bone); background: var(--smoke); }

.brand { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.brand img { border-radius: 9px; }
.brand span { font: 800 1.2rem/1 "Bricolage Grotesque", system-ui, sans-serif; }

h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; line-height: 1.2; }
h1 { font-size: 2rem; font-weight: 800; margin: 20px 0 4px; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 18px 0 6px; }
.effective { color: var(--ash); margin: 0 0 20px; }

.card {
  background: var(--smoke); border-radius: 16px; padding: 18px 18px 8px; margin: 0 0 14px;
  scroll-margin-top: 16px;
}
.card p, .card ul { margin: 0 0 12px; }
.card ul { padding-left: 22px; }
.card li { margin: 4px 0; }
.card li ul { margin: 4px 0; }

.toc ol { margin: 0 0 12px; padding-left: 24px; columns: 1; }
.toc li { margin: 3px 0; }
.toc a { text-decoration: none; }

.table-wrap { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--line); }
th { color: var(--ash); font-weight: 600; border-top: 0; }
th:first-child, td:first-child { width: 40%; padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
/* long words (email addresses, "sub-processor") may still break, but only
 * when a whole word does not fit */
td, th { hyphens: auto; }

.doc-foot { color: var(--ash); padding: 8px 0 max(40px, env(safe-area-inset-bottom)); }
.doc-foot p { margin: 6px 0; }

@media (min-width: 560px) {
  body { font-size: 17px; }
  .toc ol { columns: 2; column-gap: 28px; }
}
