/* Unified site footer.
   Single source of truth so every page matches the homepage footer.
   Loaded last and scoped under `footer` with !important so it wins over
   the older footer rules in site.css / flow.css / scale.css. */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #070a0c !important;
  padding: 48px 0 36px !important;
}

footer .footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto !important;
  gap: 48px !important;
  align-items: start !important;
  margin-bottom: 48px !important;
}

footer .footer-brand p {
  max-width: 310px !important;
  margin-top: 14px !important;
  color: var(--muted) !important;
  font-size: var(--type-ui) !important;
  line-height: 1.7 !important;
}

footer .footer-col h4 {
  margin-bottom: 14px !important;
  color: #d4dbd7 !important;
  font-size: var(--type-caption) !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1.35 !important;
}

footer .footer-col ul {
  display: grid !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

footer .footer-col a {
  color: var(--muted) !important;
  font-size: var(--type-ui) !important;
  transition: color 0.2s ease !important;
}

footer .footer-col a:hover {
  color: #ffb36d !important;
}

footer .footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin-top: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 28px !important;
  color: var(--muted-2) !important;
  font-size: var(--type-ui) !important;
}

footer .footer-bottom p {
  color: var(--muted-2) !important;
}

footer .footer-legal {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  justify-content: flex-end !important;
}

footer .footer-legal a {
  color: var(--muted-2) !important;
  font-size: var(--type-ui) !important;
}

footer .footer-legal a:hover {
  color: var(--orange) !important;
}

@media (max-width: 1040px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 640px) {
  footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  footer .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  footer .footer-legal {
    justify-content: flex-start !important;
  }
}
