/* Shared styling for Call Bear long-form pages (privacy, terms, support, account deletion).
   Tokens mirror the homepage in index.html; this file adds a readable document layout.
   The homepage keeps its own inline styles and is not affected by this file. */

:root {
  color-scheme: light;
  --blue: #4ab2e5;
  --blue-deep: #2a8cbe;
  --blue-text: #17699b;
  --ink: #14181c;
  --muted: #5b6670;
  --soft: #ebf5fc;
  --surface: #ffffff;
  --raised: #f4f9fd;
  --line: #dce6ee;
  --honey: #f5b043;
  --green: #1c7e40;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(22, 57, 82, 0.14);
  --max: 1120px;
  --doc: 820px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--soft);
  font-family: inherit;
  letter-spacing: 0;
  line-height: 1.55;
}

a {
  color: var(--blue-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 22px;
  background: rgba(235, 245, 252, 0.9);
  border-bottom: 1px solid rgba(220, 230, 238, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(42, 140, 190, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue-text);
  text-decoration: none;
}

/* ---------- Document ---------- */

main {
  padding: 44px 22px 72px;
}

.doc {
  width: min(100%, var(--doc));
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(220, 230, 238, 0.85);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(22, 57, 82, 0.08);
  padding: clamp(24px, 5vw, 52px);
}

.eyebrow {
  color: var(--blue-text);
  font-weight: 850;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc h1 {
  margin: 10px 0 0;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
}

.doc .updated {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}

.doc h2 {
  margin: 40px 0 0;
  padding-top: 8px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 900;
  scroll-margin-top: 84px;
}

.doc h3 {
  margin: 26px 0 0;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 850;
}

.doc p,
.doc li {
  color: var(--muted);
  font-weight: 500;
  font-size: 1.02rem;
}

.doc p {
  margin: 14px 0 0;
}

.doc strong {
  color: var(--ink);
  font-weight: 750;
}

.doc a {
  font-weight: 650;
}

.doc ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.doc li {
  margin-top: 8px;
}

.doc li::marker {
  color: var(--blue);
}

.doc hr {
  margin: 40px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Summary / callout boxes */

.callout {
  margin-top: 26px;
  padding: 20px 22px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.callout.tldr {
  background: rgba(74, 178, 229, 0.1);
  border-color: rgba(74, 178, 229, 0.32);
}

.callout.note {
  background: rgba(245, 176, 67, 0.1);
  border-color: rgba(245, 176, 67, 0.34);
}

.callout > :first-child {
  margin-top: 0;
}

.callout h3 {
  margin-top: 0;
}

/* In-page table of contents */

.toc {
  margin-top: 26px;
  padding: 18px 22px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.toc strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.toc ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
}

.toc li {
  margin: 0;
}

.toc a {
  color: var(--blue-text);
  font-weight: 650;
  font-size: 0.96rem;
}

/* FAQ / support helpers */

.help-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-card {
  padding: 20px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.help-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 850;
}

.help-card p {
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 24px;
  border-radius: 16px;
  color: white;
  background: var(--blue);
  font-weight: 850;
  box-shadow: inset 0 -6px 0 var(--blue-deep), 0 14px 28px rgba(42, 140, 190, 0.24);
}

.button:hover {
  text-decoration: none;
}

/* ---------- Footer ---------- */

footer {
  background: var(--surface);
  padding: 30px 22px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--blue-text);
  font-weight: 800;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
    font-size: 0.9rem;
  }

  .toc ul,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .nav-links .hide-xs {
    display: none;
  }
}
