/* Shared look for the content pages (privacy, terms). The redirect page
   keeps its own centered-interstitial styles inline. Palette mirrors the
   app theme so the web pages feel like the same product. */
:root {
  color-scheme: light dark;
  --bg: #faf6ef;
  --ink: #1f1b16;
  --muted: #6b6357;
  --brand: #2e7d4f;
  --rule: #e3dac8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110d;
    --ink: #f3ece0;
    --muted: #a89e8d;
    --brand: #5cbb84;
    --rule: #3a3225;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    system-ui, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand strong { font-size: 1.05rem; }

.langtoggle {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.langtoggle button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1;
}
.langtoggle button[aria-pressed="true"] {
  color: var(--brand);
  border-color: var(--brand);
}

/* Both language blocks live in the DOM; the inline script reveals one.
   English is marked active in markup so it still shows if JS is disabled. */
[data-lang] { display: none; }
[data-lang].active { display: block; }

h1 { font-size: 1.6rem; margin: 0 0 4px; }
h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
  padding-top: 4px;
}
h3 { font-size: 1rem; margin: 20px 0 4px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 1.25rem; }
li { margin: 4px 0; }
a { color: var(--brand); }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }

.footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
