/* River Money — the legal pages (/privacy, /terms, /cookies; web 0.9.261).
   Plain documents in the app's own palette (the tokens below are copies of static/index.html's :root blocks,
   pinned equal by tests/test_legal_pages.py) with the lockup rule from brand/README.md: Gabarito 800, the
   mark's box .78 × the wordmark size, one baseline. No script beyond the pre-paint theme stamp. */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#08080A;--card:#19191C;--border:#2C2C31;--text:#ECECEF;--text2:#A4A4AD;--text3:#93939C;
  --accent:#638DFF;--accent-rgb:99,141,255;--line:rgba(255,255,255,.05);
  color-scheme:dark;
}
:root[data-theme=light]{
  --bg:#F4F4F6;--card:#FFFFFF;--border:#D9D9DF;--text:#16161A;--text2:#5C5C66;--text3:#5C5C66;
  --accent:#2D56FA;--accent-rgb:45,86,250;--line:rgba(22,22,26,.07);
  color-scheme:light;
}
@font-face{font-family:'Gabarito';font-weight:800;font-style:normal;font-display:block;src:url(/static/brand/Gabarito-800.woff2) format('woff2')}
html{background:var(--bg)}
body{background:var(--bg);color:var(--text);font-family:"Segoe UI",system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.6;
  -webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* The header bar: the login page's .auth-top, verbatim (64px, the lockup at 26px, the text colour). */
/* The bar spans the text column, so the lockup sits over the title (the login page aligns its bar to its content). */
.top{height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;width:100%;max-width:760px;margin:0 auto}
.lockup{display:inline-flex;align-items:baseline;gap:8px;--wm:26px;font-family:Gabarito,"Segoe UI",sans-serif;font-weight:800;font-size:var(--wm);
  line-height:1;color:var(--text);user-select:none;-webkit-user-select:none;white-space:nowrap}
.lockup img{width:calc(var(--wm)*.78);height:calc(var(--wm)*.78);position:relative;top:calc(var(--wm)*.046)}
.top nav{display:flex;gap:18px;font-size:13px}
.top nav a{color:var(--text2)}
.top nav a[aria-current]{color:var(--text);font-weight:600}
.top nav a:hover{text-decoration:none;color:var(--text)}

main{width:100%;max-width:760px;margin:0 auto;padding:28px 20px 64px;flex:1}
h1{font-size:32px;font-weight:600;letter-spacing:-.01em;line-height:1.2;margin:8px 0 6px}
.meta{color:var(--text3);font-size:13px;margin-bottom:26px}
.lead{font-size:17px;color:var(--text2);margin-bottom:26px}
h2{font-size:19px;font-weight:600;margin:34px 0 10px;padding-top:22px;border-top:1px solid var(--border)}
h3{font-size:15px;font-weight:600;margin:18px 0 6px}
p{margin:0 0 12px}
ul,ol{margin:0 0 12px 22px}
li{margin:0 0 6px}
table{width:100%;border-collapse:collapse;margin:8px 0 16px;font-size:14px}
th,td{text-align:left;vertical-align:top;padding:8px 10px;border-bottom:1px solid var(--border)}
th{color:var(--text2);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
/* What only the owner can fill in: shown until it is filled, so a draft can never pass for a final text. */
.fill{background:rgba(var(--accent-rgb),.14);border-radius:3px;padding:1px 2px;margin:0 -1px;color:var(--text);box-decoration-break:clone;-webkit-box-decoration-break:clone}
.box{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:14px 16px;margin:0 0 16px}
@supports (corner-shape:squircle){ .box{border-radius:18px;corner-shape:squircle} }
.box p:last-child{margin:0}

footer{border-top:1px solid var(--border);color:var(--text3);font-size:13px}
footer div{max-width:760px;margin:0 auto;padding:16px 20px;display:flex;flex-wrap:wrap;gap:6px 18px}
footer a{color:var(--text3)}

@media(max-width:600px){
  .top{padding:0 16px}
  .top nav{gap:12px}
  main{padding:18px 16px 48px}
  h1{font-size:26px}
  /* Phones: a row becomes a card, each cell led by its column's name (data-l, set from the header row). */
  table,tbody{display:block}
  thead{display:none}
  tr{display:block;padding:10px 0;border-bottom:1px solid var(--border)}
  td{display:block;padding:2px 0;border:0}
  td::before{content:attr(data-l);display:block;color:var(--text2);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin-top:6px}
  td:first-child::before{margin-top:0}
}
