/* Shared styling for the public legal pages (privacy, terms).
   Standalone CSS rather than Tailwind: these are static files in public/ served
   directly by Firebase Hosting, so they never pass through the Vite build. */

:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.07);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --dim: #6b7280;
  --accent: #818cf8;
  --accent-strong: #6366f1;
  --warn-bg: rgba(245, 158, 11, 0.08);
  --warn-border: rgba(245, 158, 11, 0.35);
  --warn-text: #fbbf24;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Indigo wash behind the masthead, echoing the landing page hero. */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.masthead {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  padding: 22px 24px;
}

.masthead-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.brand:hover { opacity: 0.85; }

.masthead a.back {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
}

.masthead a.back:hover { color: var(--accent); }

main {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.dates {
  color: var(--dim);
  font-size: 14px;
  margin: 0 0 40px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 40px;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #fff;
  margin: 52px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

h2 .num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
  font-weight: 600;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 32px 0 10px;
}

p { margin: 0 0 18px; color: var(--muted); }

strong { color: var(--text); font-weight: 600; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #a5b4fc; }

ul, ol { margin: 0 0 18px; padding-left: 22px; color: var(--muted); }
li { margin-bottom: 9px; }
li::marker { color: var(--dim); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text);
}

/* Tables scroll inside their own container so the page body never scrolls sideways. */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--muted);
}

th {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:last-child td { border-bottom: none; }

/* The Limited Use disclosure Google's reviewers look for — called out visually
   so it is obvious the page carries it. */
.callout {
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-left: 3px solid var(--accent-strong);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 0 0 22px;
}

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

/* Unmissable pre-publication banner. Deleting this block is a required step —
   it is loud on purpose so the page cannot ship with placeholders unnoticed. */
.review-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 40px;
}

.review-banner p { color: var(--warn-text); margin-bottom: 10px; }
.review-banner p:last-child { margin-bottom: 0; }
.review-banner strong { color: #fcd34d; }

/* Inline blanks the owner must fill before publishing. */
.fill {
  background: var(--warn-bg);
  border-bottom: 1px dashed var(--warn-border);
  color: var(--warn-text);
  padding: 0 3px;
  border-radius: 2px;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 24px 48px;
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: var(--dim);
}

.footer-inner a { color: var(--dim); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

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

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 19px; }
  main { padding: 40px 20px 72px; }
  .lede { font-size: 16.5px; }
}
