/* Calmli public pages — privacy, terms, support, contact.
   Deliberately plain: these pages exist to be *read*, by people and by the
   crawlers that gate App Store review, Razorpay verification and Google OAuth.
   Nothing here is required for the content to be legible. */

:root {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --text: #18181b;
  --muted: #52525b;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0f766e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --surface: #18181b;
    --text: #e4e4e7;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #5eead4;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Header and footer ------------------------------------------------------ */

.site-header,
.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px;
}

.site-header { border-bottom: 1px solid var(--line); }

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav a { margin-right: 18px; }
.site-footer p { margin: 12px 0 0; }

/* Content ---------------------------------------------------------------- */

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

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 34px 0 0; }
h3 { font-size: 1.02rem; margin: 24px 0 0; }
h2 + p, h3 + p, h2 + ul, h3 + ul, h2 + ol, h3 + ol { margin-top: 8px; }

.updated { color: var(--muted); margin-top: 0; }

ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

.contact-box,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.cards { display: grid; gap: 14px; margin-top: 24px; }
.card h3 { font-size: 1rem; margin: 0 0 6px; }
.card p { margin: 0; font-size: 0.95rem; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
