/* The legal pages: privacy, terms, sub-processors, DPA.
   Same palette and type as the rest of vythos.tech, set for reading:
   one column, ~70 characters, tables that scroll inside themselves. */

[data-theme="dark"] {
  --bg: #0f0c1a;
  --panel: rgba(255,255,255,0.04);
  --line: rgba(255,255,255,0.09);
  --text: #ffffff;
  --text2: #e2e8f0;
  --muted: #94a3b8;
  --link: #c084fc;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f8f7ff;
  --panel: rgba(124,58,237,0.05);
  --line: rgba(0,0,0,0.09);
  --text: #0f0c1a;
  --text2: #1e1b4b;
  --muted: #4b5563;
  --link: #6d28d9;
  color-scheme: light;
}
:root { --purple: #7c3aed; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text2);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-inline: 20px;
}

.top {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding-block: 28px 8px;
}
.top nav { align-items: center; }
.top img.wordmark { height: 30px; width: auto; display: block; }
[data-theme="light"] img.wordmark { content: url("/img/vythos-wordmark-dark.png"); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.theme {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 100px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.theme:focus-visible, a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

main { max-width: 760px; margin: 0 auto; padding-block: 36px 64px; }
.eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--link);
}
h1 { color: var(--text); font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 12px; text-wrap: balance; }
.updated { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
h2 { color: var(--text); font-size: 22px; line-height: 1.3; margin: 40px 0 12px; text-wrap: balance; }
h3 { color: var(--text); font-size: 17px; margin: 26px 0 8px; }
p, ul, ol { margin-bottom: 14px; max-width: 70ch; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--link); }
strong { color: var(--text); }
.lede { font-size: 18px; color: var(--text2); }

.box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin: 18px 0;
}
.box p:last-child { margin-bottom: 0; }

.table { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.table.wide table { min-width: 680px; }

ol.clauses { list-style: none; padding-left: 0; counter-reset: clause; }
ol.clauses > li { counter-increment: clause; padding-left: 2.4em; position: relative; }
ol.clauses > li::before {
  content: counter(clause) "."; position: absolute; left: 0;
  font-family: 'DM Mono', ui-monospace, monospace; font-size: 14px; color: var(--muted); top: 2px;
}

footer.legal {
  max-width: 760px; margin: 0 auto; padding-block: 24px 40px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
  display: grid; gap: 8px;
}
footer.legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.legal a { color: var(--muted); }
footer.legal a:hover { color: var(--text); }
