.footer {
  border-top: 1px solid var(--color-stroke);
  padding: var(--space-8);
  background: var(--color-brand);
  color: var(--color-blanc);
}

.footer-top {
  display: grid;
  grid-template-columns: 14.5349% 14.5349% 14.5349% 14.5349% 1fr;
  gap: 64px;
  align-items: start;
}

.footer-col {
  display: grid;
  gap: var(--space-2);
  align-content: start;
  justify-items: start;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--lh-145);
}

.footer-col strong {
  font-weight: 600;
  letter-spacing: 0em;
}

.footer-col a {
  opacity: 0.45;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: max-content;
  justify-self: start;
  text-decoration: none;
}

.footer-link-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
  margin-bottom: 3px;
}

.footer-bottom .legal a {
  position: relative;
  display: inline-block;
  width: max-content;
}

.footer-col a::after,
.footer-bottom .legal a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.footer-col a:hover::after,
.footer-col a:focus-visible::after,
.footer-bottom .legal a:hover::after,
.footer-bottom .legal a:focus-visible::after {
  transform: scaleX(1);
}

.footer-col a:hover,
.footer-col a:focus-visible,
.footer-bottom .legal a:hover,
.footer-bottom .legal a:focus-visible {
  opacity: 1;
}

.footer-logo {
  width: 235.702px;
  height: 31.273px;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-logo-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
}

.footer-bottom {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  letter-spacing: 0em;
  text-transform: uppercase;
  font-family: var(--font-narrow);
}

.footer-bottom .legal {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: 0em;
  opacity: 0.45;
  display: flex;
  gap: var(--space-2);
}

@media (max-width: 1024px) {
  .footer {
    padding: var(--space-4);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-logo-wrap {
    justify-content: flex-start;
  }

  .footer-logo {
    width: 235.702px;
    height: 31.273px;
    max-width: 100%;
  }

  .footer-bottom {
    margin-top: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
}
