/* Legal pages for App Store review and in-app links.
   Deliberately plain: these have to load fast, read well on a phone, and keep working
   without any build step or external font/CDN request.
   Colors mirror the app's "2a Warm Ledger" tokens (BQColor / Assets.xcassets). */

:root {
  color-scheme: light dark;
  --bg: #F3F1ED;
  --surface: #FFFFFF;
  --ink: #17181B;
  --ink-soft: #6E6E68;
  --rule: #E0DCD4;
  --accent: #1F5F5B;
  --fill-bg: #F1E6D6;
  --fill-ink: #6B4A21;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --surface: #201F1C;
    --ink: #F4F2EE;
    --ink-soft: #A5A19A;
    --rule: #35322C;
    --accent: #6FB3AC;
    --fill-bg: #2E271D;
    --fill-ink: #E0C9A6;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.85;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding-top: 2rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 0 .25rem;
  letter-spacing: .01em;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  line-height: 1.5;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 .4rem;
  line-height: 1.5;
}

p, li { color: var(--ink); }
p { margin: 0 0 1rem; }

ul { padding-left: 1.3rem; margin: 0 0 1rem; }
li { margin-bottom: .5rem; }

strong { font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.meta {
  color: var(--ink-soft);
  font-size: .85rem;
  margin-bottom: 2rem;
}

.back {
  font-size: .9rem;
  margin: 0 0 1.5rem;
}

.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .6rem;
  padding: .9rem 1rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

.contact {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .6rem;
  padding: 1rem;
  font-size: 1.05rem;
  word-break: break-all;
}

/* Placeholders that must be replaced before publishing. Highlighted on purpose so an
   unfilled one cannot slip past unnoticed on the rendered page. */
.fill {
  background: var(--fill-bg);
  color: var(--fill-ink);
  padding: .1em .45em;
  border-radius: .3em;
  font-weight: 600;
}

.card-list { list-style: none; padding: 0; }
.card-list li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: .6rem;
  margin-bottom: .75rem;
}
.card-list a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.card-list .desc {
  display: block;
  font-weight: 400;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: .2rem;
}
