/* ============================================================
   Votenir site footer — shared by the homepage and every static page (marketing, blog, guides,
   legal) so the footer is identical everywhere: Product · Resources · Company · Legal · © Votenir.
   The links are listed in src/components/footerColumns.ts; the homepage renders the same footer
   from React (src/components/SiteFooter.tsx).
   Own resets; the light colours alias sky-tokens.css (which also sets them on .lp-footer, VOT-617);
   solid white like the header (site-nav.css), except under the guides' dark theme (see below).
   ≤600px: the four columns stack into one.
   ============================================================ */

.lp-footer {
  --footer-ink: var(--lp-ink);
  --footer-ink-soft: var(--lp-ink-soft);
  --footer-muted: var(--lp-muted);
  --footer-primary: var(--lp-primary);
  --footer-border: var(--lp-border);
  --footer-bg: #fff;
  margin: 0;
  padding: 2.4rem 1.5rem 2rem;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  font-family: var(--font-text, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  box-sizing: border-box;
}
.lp-footer * { box-sizing: border-box; }

.lp-footer .lp-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.lp-footer .lp-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.lp-footer .lp-footer-heading {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-ink);
}

.lp-footer .lp-footer-col a {
  color: var(--footer-ink-soft);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.lp-footer .lp-footer-col a:hover { color: var(--footer-primary); }

/* Beta note (VOT-490), one line above the copyright; its link is underlined, not colour alone. */
.lp-footer .lp-footer-beta {
  max-width: 960px;
  margin: 2rem auto 0;
  color: var(--footer-ink-soft);
  font-size: 0.85rem;
}
.lp-footer .lp-footer-beta a {
  color: var(--footer-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lp-footer .lp-footer-copy {
  max-width: 960px;
  margin: 2rem auto 0;
  color: var(--footer-muted);
  font-size: 0.85rem;
}
.lp-footer .lp-footer-beta + .lp-footer-copy { margin-top: 0.5rem; }
.lp-footer .lp-footer-note {
  max-width: 960px;
  margin: 0.5rem auto 0;
  color: var(--footer-ink-soft);
  font-size: 0.85rem;
}
.lp-footer .lp-footer-beta + .lp-footer-note + .lp-footer-copy { margin-top: 0.25rem; }
/* Homepage only: the copyright is the easter egg (VOT-553); it looks like the plain text on the other pages. */
/* The confetti starts from the copyright itself, not from the middle of the 960 px line (VOT-575). */
.lp-footer .lp-footer-egg-anchor { position: relative; display: inline-block; }
/* No side padding, so the copyright lines up with the footer lines above it. */
.lp-footer .lp-footer-egg { background: none; border: 0; padding: 0.5rem 0; min-height: 44px; font: inherit; color: inherit; cursor: default; }
.lp-footer .lp-footer-egg:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.lp-footer .lp-footer-egg-cheer:not(:empty) { margin-left: 0.5rem; }

/* A signed-in user's dark app theme (a message page): the footer takes the dark palette instead of
   ending the page in a white band. The public pages are always light (VOT-648). */
:root[data-theme="dark"] .lp-footer {
  --footer-ink: #e7eef2;
  --footer-ink-soft: #c2d0d9;
  --footer-muted: #8398a6;
  --footer-primary: #20c9b7;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-bg: #122029;
}

@media (max-width: 600px) {
  .lp-footer .lp-footer-cols { grid-template-columns: 1fr; }
}
