/* Component: Footer — Figma node 55:1372 / 47:632 */
.footer {
  width: 100%;
  background: var(--dark);
}

.footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-block: 80px;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 451px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  width: 225px;
  height: 52px;
}

.footer__tagline {
  font-family: var(--font-gotham);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.4px;
  color: var(--white);
  max-width: 328px;
}

.footer__contacts {
  display: flex;
  gap: 32px;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  white-space: nowrap;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.32);
}

.footer__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 149px;
  color: var(--white);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-gotham);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.4px;
}

.footer__social a {
  transition: opacity 0.25s ease-out;
}

.footer__social a:hover {
  opacity: 0.7;
}

.footer__bottom-border {
  width: 100%;
  border-top: 0.5px solid rgba(255, 255, 255, 0.32);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  font-family: var(--font-gotham);
  font-weight: 300;
}

.footer__bottom-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__bottom-left p {
  opacity: 0.72;
}

.footer__dot {
  font-size: 12px;
  line-height: 16px;
  opacity: 1 !important;
}

.footer__credit a {
  opacity: 1;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__credit a:hover {
  color: var(--gold);
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
}

/* The label is 20px tall on its own, which leaves these four policy links
   under the 24x24 minimum in WCAG 2.2 SC 2.5.8. min-height on an inline-flex
   box grows the hit area to 24px without moving the text baseline or changing
   anything visible, so the footer looks identical and is easier to hit. */
.footer__bottom-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  transition: opacity 0.25s ease-out;
}

.footer__bottom-links a:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .footer__main {
    flex-direction: column;
    gap: 48px;
  }

  .footer__left {
    max-width: 100%;
  }

  .footer__contacts {
    flex-direction: column;
    gap: 12px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* Legal links read first, credit line last — matches how visitors scan
     a footer on mobile (what the links are, then who made it). */
  .footer__bottom-links {
    order: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
  }

  .footer__bottom-left {
    order: 2;
  }
}
