/* Shared stylesheet for the standalone /privacy, /terms, /support, /how-it-works pages.
   These pages are plain HTML served by Vercel directly, not part of the React app —
   keeping them static eliminates any chance of breaking the SPA's render path while
   giving search engines a fully-rendered document to index. */

:root {
  --primary: #2563eb;
  --primary-700: #1d4ed8;
  --primary-50: #f0f7ff;
  --dark: #18181b;
  --secondary: #71717a;
  --secondary-200: #e4e4e7;
  --secondary-50: #fafafa;
  --light: #fafafa;
  --bg-page: #ffffff;
  --bg-surface: #fafafa;
  --border: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--primary); }

/* Site header — wordmark on the left, back-to-app on the right. Sticky so
   long policies still have a one-click return path. */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.site-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--dark);
  letter-spacing: -0.01em;
  border-bottom: none;
}
.back-link {
  font-size: 13px;
  color: var(--secondary);
  border-bottom: none;
}
.back-link:hover { color: var(--dark); border-bottom: none; }

/* Article container — narrow column for readability, generous whitespace. */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

article header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
article h1 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--dark);
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.updated {
  font-size: 13px;
  color: var(--secondary);
  margin: 0;
}

article h2 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
article h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--dark);
}
article p, article li {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.65;
}
article p { margin: 0 0 16px; }
article ul, article ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
article li { margin-bottom: 6px; }
article strong { color: var(--dark); font-weight: 600; }
article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Definition-style two-column rows used on /support for contact info. */
.contact-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 24px;
  margin: 16px 0 24px;
  font-size: 15px;
}
.contact-grid dt { color: var(--secondary); font-weight: 500; }
.contact-grid dd { margin: 0; color: var(--dark); }

/* Pull-quote card used to emphasise short answers. */
.callout {
  background: var(--primary-50);
  border-left: 3px solid var(--primary);
  padding: 16px 18px;
  border-radius: 6px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--dark);
}

/* How-it-works step list — numbered, indented. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0; }
.steps > li {
  counter-increment: step;
  padding: 16px 0 16px 56px;
  position: relative;
  border-top: 1px solid var(--border);
  color: var(--dark);
  font-size: 15px;
}
.steps > li:last-child { border-bottom: 1px solid var(--border); }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', 'Inter', sans-serif;
}
.steps > li > strong { display: block; margin-bottom: 4px; font-size: 15px; }
.steps > li > span { color: var(--secondary); font-size: 14px; line-height: 1.55; }

/* Footer — minimal, mirrors the dark site footer's structure but light. */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px;
  font-size: 12px;
  color: var(--secondary);
}
.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { color: var(--secondary); border-bottom: none; }
.site-footer nav a:hover { color: var(--dark); border-bottom: none; }
.site-footer .copyright { font-family: 'Manrope', 'Inter', sans-serif; font-size: 11px; opacity: 0.7; }
