/* 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. */

:root {
  color-scheme: light dark;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #2B2621;
  --ink-soft: #5C564C;
  --rule: #E3DDD2;
  --accent: #B4593A;
  --fill-bg: #FFF3C4;
  --fill-ink: #6B4E00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17150F;
    --surface: #201D17;
    --ink: #F0EBE2;
    --ink-soft: #B0A899;
    --rule: #35302A;
    --accent: #D98A6A;
    --fill-bg: #4A3B10;
    --fill-ink: #FFE9A3;
  }
}

* { 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;
}
