/* Shared styling for the static legal pages (/tos, /privacy).
   Matte, brand-consistent, self-contained — no app JS. Dark mode reuses the
   app's cached theme key via the inline boot script on each page. */

:root {
  color-scheme: light dark;
  --bg: #fafaf9;
  --ink: #1c1917;
  --muted: #57534e;
  --rule: #e7e5e4;
  --accent: #1d4ed8;
}

html.dark {
  --bg: #16181d;
  --ink: #f5f5f4;
  --muted: #a8a29e;
  --rule: #2e3138;
  --accent: #93b4f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.15;
  margin: 28px 0 4px;
}

.effective {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 36px;
}

h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 25px;
  margin: 44px 0 10px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 6px;
}

p, li { color: var(--ink); }
li { margin: 6px 0; }
strong { font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 12px 0;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--rule);
}

th { font-weight: 600; }

footer {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

footer a { color: var(--muted); text-decoration: underline; }
