/* Footer — Mendoza Insights */

.site-footer {
  border-top: 3px solid #2fa486;
  background: var(--primary-logo, #1f3575);
  color: #fff;
}

.site-footer__inner {
  width: min(calc(100% - 2rem), 74rem);
  margin: 0 auto;
  padding: 3.25rem 0 1.25rem;
}

@media (min-width: 1440px) {
  .site-footer__inner {
    width: min(calc(100% - 3rem), 80rem);
  }
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer__brand,
.site-footer__col,
.site-footer__logo,
.site-footer__links,
.site-footer__bottom nav {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer__logo,
.site-footer__link,
.site-footer__bottom a {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer__brand {
  order: 1;
}

.site-footer__col--community {
  order: 2;
}

.site-footer__col--product {
  order: 3;
}

.site-footer__col--guides {
  order: 4;
}

@media (min-width: 640px) and (max-width: 899px) {
  .site-footer__top {
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
}

@media (min-width: 900px) {
  .site-footer__top {
    grid-template-columns:
      minmax(280px, 1.35fr)
      minmax(150px, 0.7fr)
      minmax(200px, 0.9fr)
      minmax(180px, 0.7fr);
    gap: clamp(2rem, 4vw, 4.5rem);
  }

  .site-footer__brand {
    order: 1;
  }

  .site-footer__col--product {
    order: 2;
  }

  .site-footer__col--guides {
    order: 3;
  }

  .site-footer__col--community {
    order: 4;
  }
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 220px;
  background: transparent;
  border: 0;
}

.site-footer__logo img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.site-footer__description {
  max-width: 29rem;
  margin: 1rem 0 0;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__badge {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(105, 209, 183, 0.25);
  border-radius: 999px;
  background: rgba(105, 209, 183, 0.08);
  font-family: Inter, -apple-system, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #69d1b7;
}

.site-footer__heading {
  margin: 0 0 0.85rem;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__heading--help {
  margin-top: 1.5rem;
}

.site-footer__links {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  display: inline-flex;
  width: fit-content;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: #69d1b7;
}

.site-footer__link:focus-visible,
.site-footer__socials a:focus-visible,
.site-footer__bottom a:focus-visible,
.site-footer__logo:focus-visible {
  outline: 2px solid #69d1b7;
  outline-offset: 3px;
}

.site-footer__subgroup {
  margin-top: 1.15rem;
}

.site-footer__subheading {
  margin: 0 0 0.55rem;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #69d1b7;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.site-footer__socials a:hover {
  border-color: rgba(105, 209, 183, 0.4);
  background: rgba(105, 209, 183, 0.08);
}

.site-footer__socials svg {
  width: 18px;
  height: 18px;
  color: #69d1b7;
}

.site-footer__legal-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  max-width: 68rem;
  margin-top: 2.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__legal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: #69d1b7;
}

.site-footer__legal-icon svg {
  width: 18px;
  height: 18px;
}

.site-footer__legal-note p {
  margin: 0;
  font-family: Inter, -apple-system, sans-serif;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.site-footer__legal-note strong {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.15rem;
}

.site-footer__bottom p {
  margin: 0;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
}

.site-footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: auto;
  gap: 1.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer__bottom a {
  display: inline-flex;
  width: fit-content;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.64);
  text-decoration: none;
}

.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 639px) {
  .site-footer__inner {
    padding: 2.5rem 0 1rem;
  }

  .site-footer__description {
    max-width: none;
  }

  .site-footer__socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__socials a {
    justify-content: center;
  }

  .site-footer__legal-note {
    margin-top: 2rem;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .site-footer__bottom nav {
    gap: 0.8rem 1rem;
  }
}

@media (max-width: 380px) {
  .site-footer__socials {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom nav {
    flex-direction: column;
  }
}
