/* Site footer for the static pages (terms, privacy-policy, recurring-payments,
   guides/*). Mirrors src/components/SiteFooter.astro + the .site-footer rules of
   src/styles/global.css; values are inlined because these pages load a different
   stylesheet. Selectors carry the `footer.` / `.site-footer ` prefix so they win over
   the pages' generic `footer` rules. */
footer.site-footer {
  display: block;
  margin: 48px 0 0;
  padding: 24px 0 calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(241, 246, 255, 0.52);
  font-size: 16px;
}

.site-footer .site-footer__inner,
.site-footer .site-footer__bottom {
  width: min(calc(100% - 2rem), 76rem);
  margin-inline: auto;
}

.site-footer .site-footer__inner {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-footer .footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #f1f6ff;
  text-decoration: none;
}

.site-footer .footer-brand .brand img {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  filter: drop-shadow(0 0.375rem 0.625rem rgba(0, 128, 255, 0.32));
}

.site-footer .footer-brand .brand__word {
  font-family: 'Unbounded', 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.site-footer .brand-plus {
  color: #ff5252;
}

.site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.site-footer .footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .footer-links p {
  margin: 0 0 0.25rem;
  color: #f1f6ff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.site-footer .footer-links a {
  min-height: 1.75rem;
  color: rgba(241, 246, 255, 0.52);
  font-size: 0.8125rem;
  line-height: 1.75rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer .footer-links a:hover {
  color: #f1f6ff;
}

.site-footer .site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
}

@media (min-width: 48rem) {
  .site-footer .site-footer__inner,
  .site-footer .site-footer__bottom {
    width: min(calc(100% - 4rem), 76rem);
  }

  .site-footer .site-footer__inner {
    grid-template-columns: minmax(16rem, 1.3fr) repeat(2, minmax(0, 0.75fr));
    align-items: start;
  }

  .site-footer .footer-links {
    display: contents;
  }
}

@media (max-width: 24rem) {
  .site-footer .footer-links {
    grid-template-columns: 1fr;
  }
}
