/* Shared styles for the Privacy Policy and Terms pages. Same tokens as the
   app (index.html): Paper/Ink, Margin Red accent, Lora for headings, Inter
   for body text. */
:root, :root[data-theme="light"] {
  --bg: #FAF6EC;
  --bg-sunken: #F2ECDE;
  --border: #E6DECC;
  --text: #1F1A14;
  --text-dim: #5E564A;
  --accent: #C2452D;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1B1712;
  --bg-sunken: #14110D;
  --border: #352E24;
  --text: #F1EBDD;
  --text-dim: #B8AE9C;
  --accent: #E0654B;
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(56px + env(safe-area-inset-bottom, 0px));
}
.back { font-size: 14px; color: var(--text-dim); text-decoration: none; }
.back:hover, .back:focus-visible { color: var(--accent); }

.brand-heading {
  display: flex; align-items: center; gap: 0.43em;
  font-family: 'Lora', Georgia, serif; font-size: 22px; line-height: 1;
  margin: 28px 0 8px; color: var(--text);
}
.brand-heading::before { content: ''; width: 1.5px; height: 1.2em; background: var(--accent); }

h1, h2, h3 { font-family: 'Lora', Georgia, serif; font-weight: 600; line-height: 1.25; }
h1 { font-size: 30px; margin: 24px 0 4px; }
h2 { font-size: 20px; margin: 36px 0 8px; }
h3 { font-size: 16px; margin: 20px 0 4px; }
.updated { color: var(--text-dim); font-size: 14px; margin: 0 0 24px; }

p, li { color: var(--text); }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
a { color: var(--accent); text-underline-offset: 2px; }
strong { font-weight: 600; }

.summary {
  background: var(--bg-sunken);
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 24px 0;
}
.summary-title { font-family: 'Lora', Georgia, serif; font-weight: 600; margin: 0 0 4px; }
.summary ul { margin: 0; }

.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--text-dim); }

.footer-links { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-dim); }
