/* Cairna — marketing site, the document pages (privacy.html, terms.html, support.html).
 *
 * Same page vocabulary as the Dive Tend and ClearNight sites, in Cairna's own
 * brand: dark forest tones and Outfit. Dark like index.html, so following a footer
 * link never flips the reader from a dark page to a white one. The tokens match
 * index.html's names so the two cannot drift on color. index.html keeps its own
 * inline styles and does not link this file.
 */

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

:root {
  --bg: #0c1412;
  --card: rgba(255,255,255,0.045);
  --border: rgba(255,255,255,0.09);
  --ink: #edf6f8;
  --sub: #a8b7b2;          /* a touch lighter than the landing page: long reading */
  --acc: #ffb37a;
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16.5px; line-height: 1.65; font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ---------- chrome ---------- */

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,20,18,0.8); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 980px; margin: 0 auto; padding: 0 24px; height: 58px; display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 16px; width: auto; display: block; }
/* A document page gets the mark and one way back; Privacy, Terms and Support all live in the footer. */
.nav-back { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--sub); text-decoration: none; }
.nav-back:hover { color: var(--ink); }

footer { border-top: 1px solid var(--border); background: #09100e; color: rgba(237,246,248,0.55); }
.footer-inner { max-width: 980px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.footer-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-mark img { height: 13px; width: auto; display: block; opacity: 0.85; }
.footer-links { display: flex; gap: 22px; list-style: none; }
.footer-links a { color: rgba(237,246,248,0.7); text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ---------- document pages ---------- */

.wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }

.page-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 40px; font-weight: 200; letter-spacing: -0.01em; margin-bottom: 6px; }
.page-header p { font-size: 14px; color: var(--sub); }

h2 { font-size: 21px; font-weight: 400; color: var(--ink); margin: 40px 0 12px; }
h3 { font-size: 16.5px; font-weight: 500; color: var(--ink); margin: 24px 0 8px; }

p { margin-bottom: 14px; color: var(--sub); }
strong { color: var(--ink); font-weight: 500; }

ul { margin: 0 0 14px 20px; color: var(--sub); }
ul li { margin-bottom: 6px; }

/* The ink carries the link and the underline does the rest; the accent alone is too light for body links. */
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255,179,122,0.6); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--acc); }

.callout {
  background: rgba(255,179,122,0.07); border: 1px solid rgba(255,179,122,0.28);
  border-radius: 14px; padding: 16px 20px; margin: 24px 0; font-size: 16px;
}
.callout p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--ink); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
td { color: var(--sub); }

/* Support: question and answer blocks */
.faq { margin-top: 8px; }
.faq h3 { margin-top: 30px; }

.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px; margin: 8px 0 12px;
}
.contact-card .big { font-size: 22px; font-weight: 300; color: var(--ink); }

@media (max-width: 560px) {
  .wrap { padding: 40px 20px 72px; }
  .page-header h1 { font-size: 32px; }
}
