/* ============================================================
   NeuAnalytics 2026, Footer Styles
   ============================================================ */

.footer {
  background-color: var(--footer-bg);
  color: var(--silver);
  padding: var(--space-16) 0 var(--space-8);
}

/* Always use dark text scheme in footer regardless of theme */
.footer,
.footer a,
.footer p,
.footer h3,
.footer h4 {
  color: var(--silver);
}

.footer h3,
.footer h4 {
  color: var(--white);
}

/* Upper footer grid */
.footer__upper {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

/* Brand column */
.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--steel);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
  font-style: italic;
}

/* Social links */
.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--steel);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--white);
  border-color: var(--neu-blue);
  background-color: rgba(4, 152, 254, 0.1);
}

/* Link columns */
.footer__column-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  color: var(--white);
}

.footer__column-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__column-links li {
  margin-bottom: var(--space-2);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--steel);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--white);
}

/* Contact column */
.footer__contact-item {
  display: block;
  font-size: var(--text-sm);
  color: var(--steel);
  text-decoration: none;
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

a.footer__contact-item:hover {
  color: var(--white);
}

.footer__address {
  line-height: var(--leading-relaxed);
  margin-top: var(--space-3);
}

/* Lower footer */
.footer__lower {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--steel);
  margin: 0;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: var(--steel);
  text-decoration: none;
  vertical-align: middle;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--white);
}

/* CPRA Privacy Choices opt-out toggle icon */
.footer__legal-link--privacy-choices {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: var(--space-2);
}

.footer__optout-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.footer__optout-icon svg {
  width: 26px;
  height: 14px;
}

/* Keep award names on a single line */
.footer__column--recognized .footer__link {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1023px) {
  .footer__upper {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .footer__upper {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__lower {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

