/* footer styles extracted from landing.css and styles.css */
/* includes: .landing-footer, .footer-*, footer responsive breakpoints */

/* ===== landing footer (from landing.css) ===== */

/* footer */
.landing-footer {
  position: relative;
  z-index: var(--z-footer);
  padding: 80px 40px 32px;
  margin-top: 80px;
  background: var(--bg-primary);
}

/* smooth gradient fade into footer (mirrors hero-video-runway at page top) */
.landing-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-contact-list li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--text-muted);
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 6px 0;
}

.footer-links li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--footer-divider);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 6px 0;
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* footer disclaimer */
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* ===== styles.css footer overrides ===== */

/* landing-footer override in styles.css (learn pages) */
/* .landing-footer {
     padding: 80px 40px 32px;
     margin-top: 80px;
   }
   note: duplicated in styles.css line 3252, kept in original file */

/* tighter footer on learn pages with sidebar */
.learn-page--with-sidebar ~ .landing-footer {
  margin-top: 0;
  padding-top: 48px;
}

/* styles.css footer components (used on learn module pages) */
.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
}

.footer-sources {
  margin-top: 0.5rem;
  font-size: 0.72rem;
}

.footer-sources a {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-sources a:hover {
  text-decoration: underline;
}

/* ===== responsive: footer-only rules from mixed @media (max-width: 768px) ===== */

/* note: the main 768px media query in landing.css mixes footer with nav, hero,
   and other selectors. the footer-specific rules are duplicated here for reference.
   the original mixed media query in landing.css is NOT modified. */

@media (max-width: 768px) {
  .landing-footer {
    padding: 60px 24px 24px;
    margin-top: 60px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal-links {
    gap: 16px;
  }

  .footer-disclaimer {
    order: 1;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
