/* brand.css — shared Flipmo brand tokens + nav/footer styles
   Used by privacy.html, terms.html, and any other static long-form pages.
   The marketing site (index.html) inlines its own copy for now; keep these
   in sync when brand tokens change. */

:root {
  --ink: #0F172A;
  --ink-2: #1A2438;
  --ink-3: #28324A;
  --paper: #FAFAF7;
  --paper-2: #F2F1EA;
  --line-dark: rgba(250,250,247,0.08);
  --line-light: rgba(15,23,42,0.08);
  --muted-on-dark: rgba(250,250,247,0.62);
  --muted-on-light: rgba(15,23,42,0.62);
  --green: #00D26A;
  --green-dim: #00A555;
  --green-soft: rgba(0,210,106,0.14);
  --warn: #FFB547;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: var(--ink); }

.mono { font-family: var(--mono); font-feature-settings: 'tnum', 'ss02'; }

/* Page wrapper */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* F$ logo mark */
.fmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-size: 26px;
  color: var(--paper);
}
.fmark .f { color: currentColor; }
.fmark .d { color: var(--green); margin-left: -0.18em; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(250,250,247,0.7);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(0,210,106,0.15);
}
.eyebrow.on-light { color: var(--muted-on-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 20px;
  border-radius: 999px;
  transition: transform .12s ease, background .15s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--green); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 30px -8px rgba(0,210,106,.55); }
.btn-primary:hover { transform: translateY(-1px); background: #1FE07F; }
.btn-ghost-light {
  background: rgba(15,23,42,0.04);
  color: var(--ink);
  border: 1px solid var(--line-light);
}
.btn-ghost-light:hover { background: rgba(15,23,42,0.07); }

/* ── Nav ─────────────────────────────────────── */
header.flipmo-nav {
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.flipmo-nav .wrap {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.flipmo-nav nav { display: flex; gap: 28px; align-items: center; }
.flipmo-nav nav a {
  font-size: 14px; font-weight: 500; color: rgba(250,250,247,0.75);
  letter-spacing: -0.005em;
}
.flipmo-nav nav a:hover { color: var(--paper); }
.flipmo-nav nav a.active { color: var(--green); }
@media (max-width: 760px) {
  .flipmo-nav .nav-links { display: none; }
}

/* ── Legal article ───────────────────────────── */
.legal-shell {
  background: var(--paper);
  padding: 80px 0 120px;
  min-height: 60vh;
}
.legal-header {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.legal-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(0,210,106,0.10), transparent 50%);
  pointer-events: none;
}
.legal-header .wrap { position: relative; }
.legal-header h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 18px 0 0;
  max-width: 880px;
}
.legal-header .lede {
  margin-top: 22px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted-on-dark);
}
.legal-header .meta-row {
  margin-top: 36px;
  display: flex; gap: 24px; flex-wrap: wrap;
  align-items: center;
}
.legal-header .meta-pill {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(250,250,247,0.06);
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper);
  letter-spacing: 0.04em;
}
.legal-header .meta-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(0,210,106,0.15);
}

.legal-shell .wrap.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .legal-shell .wrap.layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static !important; }
}

.legal-toc {
  position: sticky; top: 96px;
  padding-top: 8px;
}
.legal-toc h2 {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--muted-on-light);
  font-weight: 500;
}
.legal-toc ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  counter-reset: toc-counter;
}
.legal-toc ol li {
  counter-increment: toc-counter;
  font-size: 13.5px;
  line-height: 1.4;
}
.legal-toc ol li a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 4px 0;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color .12s ease;
}
.legal-toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px;
  color: var(--green-dim); font-weight: 600;
  flex-shrink: 0;
}
.legal-toc ol li a:hover { color: var(--green-dim); }

.legal-article {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
}
.legal-article h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  display: flex; align-items: baseline; gap: 16px;
}
.legal-article h2:first-child {
  margin-top: 0; padding-top: 0; border-top: 0;
}
.legal-article h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--green-dim);
  font-weight: 600;
  flex-shrink: 0;
}
.legal-article h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
}
.legal-article p {
  margin: 0 0 16px;
  color: var(--ink);
}
.legal-article p.muted { color: var(--muted-on-light); }
.legal-article ul, .legal-article ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}
.legal-article ul li, .legal-article ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.legal-article ul li::before {
  content: '';
  position: absolute; left: 6px; top: 11px;
  width: 6px; height: 6px; border-radius: 3px;
  background: var(--green);
}
.legal-article ol {
  counter-reset: ol-counter;
}
.legal-article ol li {
  counter-increment: ol-counter;
}
.legal-article ol li::before {
  content: counter(ol-counter) '.';
  position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  color: var(--green-dim);
}
.legal-article a.inline {
  color: var(--green-dim);
  border-bottom: 1px solid var(--green-soft);
  padding-bottom: 1px;
}
.legal-article a.inline:hover { border-bottom-color: var(--green); }
.legal-article strong { font-weight: 600; }
.legal-article code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* "In Short" summary block — paired with every section in the original policy */
.in-short {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--green-soft);
  border-left: 2px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 0 0 24px;
}
.in-short .label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-dim); font-weight: 600;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 64px;
}
.in-short p {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  color: var(--ink);
  font-style: italic;
}

/* CCPA categories table */
.ccpa-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
  border-top: 1px solid var(--line-light);
}
.ccpa-table th, .ccpa-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
  line-height: 1.45;
}
.ccpa-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-on-light);
  background: var(--paper-2);
}
.ccpa-table td.category { font-weight: 500; width: 28%; }
.ccpa-table td.examples { color: var(--muted-on-light); width: 56%; font-size: 13.5px; }
.ccpa-table td.collected { width: 16%; text-align: center; }
.ccpa-table .pill-no {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dim);
}
.ccpa-table .pill-no::before {
  content: ''; width: 6px; height: 6px; border-radius: 3px; background: var(--green);
}
@media (max-width: 640px) {
  .ccpa-table th, .ccpa-table td { padding: 10px 8px; font-size: 13px; }
  .ccpa-table td.examples { font-size: 12.5px; }
}

/* Third-party vendor grid */
.vendor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 24px;
}
.vendor-grid .vendor {
  padding: 14px 16px;
  background: var(--paper-2);
  border-radius: 10px;
  border: 1px solid var(--line-light);
}
.vendor-grid .vendor .role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dim);
  font-weight: 600;
}
.vendor-grid .vendor .name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .vendor-grid { grid-template-columns: 1fr; }
}

/* Callout (tip / important) */
.callout {
  border-left: 2px solid var(--warn);
  background: rgba(255,181,71,0.08);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0 28px;
}
.callout .label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warn); font-weight: 600;
  margin-bottom: 4px;
}
.callout p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(15,23,42,0.85); }

.callout.green {
  border-left-color: var(--green);
  background: var(--green-soft);
}
.callout.green .label { color: var(--green-dim); }

/* Definition table for plain-English summaries */
.plain-table {
  margin: 16px 0 28px;
  border-top: 1px solid var(--line-light);
}
.plain-table .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}
.plain-table .row .term {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dim);
  font-weight: 600;
  padding-top: 4px;
}
.plain-table .row .def {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
@media (max-width: 640px) {
  .plain-table .row { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Footer ──────────────────────────────────── */
footer.flipmo-footer {
  background: var(--ink); color: var(--paper);
  padding: 64px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.flipmo-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.flipmo-footer .tagline {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted-on-dark);
  max-width: 280px;
  line-height: 1.5;
}
.flipmo-footer .col-title {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 14px;
}
.flipmo-footer ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.flipmo-footer ul a { font-size: 14px; color: var(--paper); }
.flipmo-footer ul a:hover { color: var(--green); }
.flipmo-footer .bottom {
  margin-top: 56px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.flipmo-footer .bottom .mono {
  font-size: 11.5px;
  color: var(--muted-on-dark);
  letter-spacing: 0.04em;
}
@media (max-width: 820px) {
  .flipmo-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
