/* Stilla — shared styles for the support and privacy pages.
   Palette mirrors Stilla/Shared/Theme.swift so the pages read as the app:
   ink at night, warm paper in the light, soft cyan accent. */

:root {
  --bg: #f7f5f2;          /* Theme.background light — warm paper */
  --text: #1c1f26;
  --muted: #5b606b;
  --faint: #8c919a;       /* Theme.faint light */
  --accent: #3e7e93;      /* Theme.accent light — deepened teal */
  --rule: rgba(0, 0, 0, 0.10);   /* Theme.hairline light */
  --card: rgba(0, 0, 0, 0.03);   /* Theme.card light */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1118;        /* Theme.background dark — ink */
    --text: #e7e9ee;
    --muted: #a2a8b6;
    --faint: #5a6274;     /* Theme.faint dark */
    --accent: #6bb5c9;    /* Theme.accent dark — soft cyan */
    --rule: rgba(255, 255, 255, 0.07);
    --card: rgba(255, 255, 255, 0.03);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
}

/* Masthead */
.masthead { margin-bottom: 2.5rem; }

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.effective,
.copyright {
  color: var(--faint);
  font-size: 0.9375rem;
}

.effective { margin: 0.6rem 0 0; }

.lede {
  margin: 0 0 2.75rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--muted);
}

h2 {
  margin: 2.75rem 0 0.85rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.1rem; }

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

li { margin-bottom: 0.55rem; }

/* The "what we don't do" list — no bullets, quiet and scannable */
.denials {
  list-style: none;
  padding-left: 0;
}

.denials li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
}

.denials li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

strong { font-weight: 600; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration: none; }

/* Support page — FAQ */
.faq {
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  font-weight: 600;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "\2013"; }

.faq details > *:not(summary) { color: var(--muted); }

.faq details > *:last-child { margin-bottom: 1.35rem; }

/* Contact panel */
.contact {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 0 0 1rem;
}

.contact h2 {
  margin: 0 0 0.6rem;
  padding-top: 0;
  border-top: none;
}

.contact p:last-child { margin-bottom: 0; }

.email {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Disclaimer — matches the "For calm, not care" note in Settings */
.disclaimer {
  color: var(--faint);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.footer {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.footer p { margin: 0 0 0.35rem; }

@media (max-width: 30rem) {
  .page { padding: 3rem 1.25rem 3rem; }
  body { font-size: 16px; }
}
