/* Site footer — balanced stack + equal SEO pills (all pages) */

.site-footer {
  padding: 2.25rem 0 2.75rem;
}

.footer-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.35rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer-operated {
  color: #cbd5e1 !important;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.35rem;
}

.footer-legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  color: #cbd5e1 !important;
  font-size: 0.9rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: #06b6d4 !important;
  outline: none;
}

.site-footer .footer-seo {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center !important;
}

.site-footer .footer-seo-title {
  margin: 0 auto !important;
  text-align: center !important;
  color: #94a3b8 !important;
  font-family: "DM Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer .footer-seo-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.15rem !important;
  width: 100%;
  align-items: stretch;
  justify-content: center !important;
  justify-items: stretch;
}

.site-footer .footer-seo-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  height: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;
  box-sizing: border-box;
  color: #cbd5e1 !important;
  border: 1px solid #334155;
  border-radius: 9999px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-footer .footer-seo-link:hover,
.site-footer .footer-seo-link:focus-visible {
  color: #06b6d4 !important;
  border-color: #06b6d4;
  outline: none;
}

@media (max-width: 900px) {
  .site-footer .footer-seo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 1.75rem 0 2.25rem;
  }

  .site-footer .footer-seo-list {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}
