/**
 * Shared mega footer — same layout, spacing, and Follow Us on all pages.
 * Load after page :root (uses var(--border), --txs, etc. with fallbacks).
 */

.mega-footer {
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  padding: 48px 28px 0;
  background: rgba(6, 6, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
}

/* Optional: extra space above footer on long-form legal pages */
.mega-footer--page-top-gap {
  margin-top: 60px;
}

/* Optional: pin footer in flex-column layouts (e.g. success page) */
.mega-footer--fill {
  width: 100%;
  align-self: stretch;
  margin-top: auto;
}

.mega-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.mega-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .mega-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 580px) {
  .mega-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.mf-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.mega-footer .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.mega-footer .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-footer .logo-text {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--tx, rgba(255, 255, 255, 0.93));
}

.mf-brand-desc {
  font-size: 13px;
  color: var(--txm, rgba(255, 255, 255, 0.52));
  line-height: 1.65;
  max-width: 260px;
}

.mf-col-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--txm, rgba(255, 255, 255, 0.52));
  margin: 0 0 10px;
  line-height: 1.2;
}

.mf-col a {
  display: block;
  font-size: 13px;
  color: var(--txs, rgba(255, 255, 255, 0.25));
  text-decoration: none;
  padding: 3px 0;
  line-height: 1.45;
  transition: color 0.2s;
  font-weight: 500;
}

.mf-col a:hover {
  color: var(--tx, rgba(255, 255, 255, 0.93));
}

.mf-follow {
  text-align: left;
}

.follow-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.follow-link {
  font-size: 13px;
  color: var(--txs, rgba(255, 255, 255, 0.25));
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  padding: 2px 0;
}

.follow-link:hover {
  color: var(--tx, rgba(255, 255, 255, 0.93));
}

/* Email only (no socials): no extra strip / gap */
.follow-links .follow-link.follow-email {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* When social links exist above email, subtle divider */
.follow-links .follow-link:not(.follow-email) ~ .follow-email {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.mega-footer-bottom {
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mf-copy {
  font-size: 12px;
  color: var(--txs, rgba(255, 255, 255, 0.25));
}

.mf-tagline {
  font-size: 12px;
  color: var(--txs, rgba(255, 255, 255, 0.25));
  font-style: italic;
}

@media (max-width: 768px) {
  .mega-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  .mega-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .mf-follow {
    text-align: left !important;
  }

  .follow-links {
    align-items: flex-start !important;
  }
}
