/* Legal pages. Night by default, like the app; the light theme is warm paper, never plain white. */
:root {
  --bg: #0b0d14;
  --surface: #161925;
  --text: #f3f2ee;
  --muted: #a9acba;
  --accent: #b4a8ff;
  --gold: #e8c98a;
  --line: #262a38;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3ecdf;
  --surface: #fbf7ef;
  --text: #1c1a2e;
  --muted: #5f5a6b;
  --accent: #4a3bd6;
  --gold: #8a6a25;
  --line: #e2d6c0;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Figtree, system-ui, sans-serif;
}

.bar {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand em { font-style: normal; color: var(--gold); }
.brand img { height: 26px; width: auto; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

h1, h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 34px; margin: 0 0 24px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
p, li { color: var(--muted); }
ul { padding-left: 20px; }
li { margin: 6px 0; }
a { color: var(--accent); }
.lead { font-family: Fraunces, Georgia, serif; font-size: 22px; color: var(--text); }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
