/* Footer — three columns: brand / Explore / Connect, then legal row. */
.site-footer {
  position: relative;
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 calc(30px + var(--safe-area-bottom));
  color: var(--text-2);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.site-footer__logo {
  margin-bottom: 14px;
}

.site-footer__logo .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.site-footer__logo .custom-logo {
  display: block;
  height: var(--logo-height);
  width: auto;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer__tagline {
  font-size: 13px;
  color: var(--text-eyebrow);
}

.site-footer__heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
}

.site-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.site-footer__menu a {
  color: var(--text-2);
  transition: color 0.2s ease;
}

/* "Open link in a new tab" on a menu item adds the design's ↗ arrow — as an
   SVG mask, not the character (iOS would render that as an emoji). */
.site-footer__menu a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.35em;
  vertical-align: 0.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9L9 3M4 3h5v5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9L9 3M4 3h5v5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
  color: var(--brand);
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-eyebrow);
}

.site-footer__legal-nav {
  margin-top: 10px;
}

.site-footer__legal-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.site-footer__legal-menu li + li::before {
  content: "\00B7";
  margin: 0 8px;
  color: var(--text-arrow);
}

.site-footer__legal-menu a {
  color: var(--text-eyebrow);
  transition: color 0.2s ease;
}

.site-footer__legal-menu a:hover,
.site-footer__legal-menu a:focus-visible {
  color: var(--ink);
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 48px;
  }

  .site-footer__legal-nav {
    text-align: center;
  }

  .site-footer__legal-menu {
    justify-content: center;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .site-footer__legal {
    flex-direction: column;
    margin-top: 36px;
  }
}
