/* Ledgerly's Terms of Service and Privacy Policy pages: always light, like the website. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #0f766e;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  font-size: 1rem;
}

/* Their own header and footer on the app's address; on the website they get the site's (scripts/build-site.mjs). */
body > header:not(.top) {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px;
}

body > header:not(.top) a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

body > header:not(.top) svg {
  display: block;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 4px;
}

h2 {
  font-size: 1.2rem;
  margin: 36px 0 8px;
}

h3 {
  font-size: 1rem;
  margin: 20px 0 6px;
}

p,
li {
  color: var(--text);
}

.updated,
.note {
  color: var(--muted);
}

.note {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.95rem;
}

a {
  color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.95rem;
}

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

body > footer:not(.foot) {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
