/* ==========================================
   SITE FOOTER (shared by every page)
   All text is pure white on deep purple (6:1 contrast).
   Don't add opacity to footer text: anything below
   white fails WCAG AA on the brand purples.
========================================== */
.site-footer {
  background: var(--deep-purple, #693EEB);
  color: #fff;
  padding: 56px 24px 32px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: left;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after { box-sizing: border-box; }

.site-footer a { color: #fff; }

.site-footer .sf-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Top: brand + link columns ─────────────── */
.site-footer .sf-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) 3fr;
  gap: 48px;
  padding-bottom: 40px;
}

.site-footer .sf-logo {
  display: inline-block;
  line-height: 0;
}

.site-footer .sf-logo img {
  display: block;
  height: 32px;
  width: auto;
}

.site-footer .sf-tagline {
  margin: 14px 0 0;
  max-width: 28ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #fff;
}

.site-footer .sf-socials {
  display: flex;
  gap: 8px;
  margin: 20px 0 0 -10px;
  padding: 0;
  list-style: none;
}

.site-footer .sf-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.site-footer .sf-socials a:hover { background: rgba(255,255,255,0.14); }

.site-footer .sf-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer .sf-heading {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #fff;
}

.site-footer .sf-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .sf-nav a {
  display: inline-block;
  padding: 6px 0;
  min-height: 32px;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-footer .sf-nav a:hover,
.site-footer .sf-nav a[aria-current="page"] { text-decoration: underline; }

.site-footer a:focus-visible {
  outline: 2px solid var(--yellow, #FADE51);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Bottom: disclaimer + copyright ────────── */
.site-footer .sf-legal {
  border-top: 1px solid rgba(255,255,255,0.28);
  padding-top: 24px;
  font-size: 0.75rem;
  line-height: 1.65;
  color: #fff;
}

.site-footer .sf-legal p { margin: 0 0 10px; max-width: 90ch; }
.site-footer .sf-legal .sf-copy { margin: 16px 0 0; }

/* ── Tablet ────────────────────────────────── */
@media (max-width: 860px) {
  .site-footer .sf-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── Mobile ────────────────────────────────── */
@media (max-width: 560px) {
  .site-footer { padding: 44px 20px 28px; }
  .site-footer .sf-top { gap: 32px; padding-bottom: 32px; }
  .site-footer .sf-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
  /* Legal is the longest list: span both columns and flow it in two */
  .site-footer .sf-col:last-child { grid-column: 1 / -1; }
  .site-footer .sf-col:last-child ul { columns: 2; column-gap: 20px; }
  .site-footer .sf-col:last-child li { break-inside: avoid; }
  .site-footer .sf-nav a { padding: 7px 0; min-height: 0; }
}
