.legal-footer {
  padding: 56px 0 24px;
  background: #0a0a0b;
  color: #fff;
}

.legal-footer * {
  box-sizing: border-box;
}

.legal-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(4, minmax(130px, 1fr));
  gap: 34px;
  align-items: start;
}

.legal-footer__top--compact {
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(190px, 1fr));
}

.legal-footer__brand img {
  display: block;
  width: min(210px, 100%);
  height: auto;
  filter: brightness(0) invert(1);
}

.legal-footer__brand strong {
  display: block;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.25;
}

.legal-footer__brand p {
  max-width: 310px;
  margin: 9px 0 0;
  color: #b8b8be;
  font-size: 14px;
  line-height: 1.55;
}

.legal-footer__social-label,
.legal-footer__group h2 {
  margin: 0 0 12px;
  color: #8f8f97;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.legal-footer__social-label {
  display: block;
  margin-top: 22px;
}

.legal-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-footer__socials a {
  display: grid;
  width: 46px;
  min-height: 46px;
  margin: 0;
  border: 1px solid #303036;
  border-radius: 14px;
  color: #fff;
  place-items: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.legal-footer__socials a:hover,
.legal-footer__socials a:focus-visible {
  border-color: #e00014;
  background: #1c1c20;
  transform: translateY(-2px);
}

.legal-footer__socials svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.legal-footer__group {
  min-width: 0;
}

.legal-footer__group a,
.legal-footer__group address,
.legal-footer__group p {
  display: flex;
  min-height: 44px;
  margin: 0;
  color: #c5c5cb;
  font-size: 14px;
  font-style: normal;
  line-height: 1.35;
  text-decoration: none;
  align-items: center;
}

.legal-footer__group address {
  min-height: 0;
  padding: 5px 0 12px;
  line-height: 1.55;
}

.legal-footer__group a:hover,
.legal-footer__group a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #e00014;
  text-underline-offset: 5px;
}

.legal-footer__legal-tools {
  display: flex;
  gap: 12px;
  padding-top: 22px;
  margin-top: 32px;
  border-top: 1px solid #29292d;
  align-items: stretch;
}

.legal-footer__seal {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  width: min(320px, 100%);
  min-height: 78px;
  padding: 12px 14px;
  margin: 0;
  border: 1px solid #303036;
  border-radius: 16px;
  background: #141417;
  color: #fff;
  text-decoration: none;
  align-items: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.legal-footer__seal:hover,
.legal-footer__seal:focus-visible {
  border-color: #e00014;
  background: #1c1c20;
  transform: translateY(-2px);
}

.legal-footer__seal-icon {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  color: #be0012;
  place-items: center;
}

.legal-footer__seal-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.legal-footer__seal span:last-child {
  display: grid;
  gap: 2px;
}

.legal-footer__seal small {
  color: #8f8f97;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.legal-footer__seal strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
}

.legal-footer__seal em {
  color: #b8b8be;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.legal-footer__credits {
  padding-top: 22px;
  margin-top: 28px;
  border-top: 1px solid #29292d;
  color: #74747c;
  font-size: 11px;
  line-height: 1.55;
}

.legal-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid #29292d;
  color: #898990;
  font-size: 12px;
  align-items: center;
  justify-content: space-between;
}

.legal-footer [data-footer-preferences] {
  display: flex;
  align-items: center;
}

.legal-footer .walk-ga-preferences {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5c5cb;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.legal-footer a:focus-visible,
.legal-footer button:focus-visible {
  outline: 3px solid rgba(255, 38, 58, .7);
  outline-offset: 3px;
}

.legal-footer-visible .floating-whatsapp {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

@media (max-width: 1020px) {
  .legal-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .legal-footer {
    padding-top: 42px;
    padding-bottom: 96px;
  }

  .legal-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .legal-footer__brand {
    grid-column: 1 / -1;
  }

  .legal-footer__group {
    padding-top: 22px;
    border-top: 1px solid #29292d;
  }

  .legal-footer__legal-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-footer__seal {
    grid-template-columns: 44px minmax(0, 1fr);
    width: 100%;
    min-height: 72px;
    padding: 10px;
  }

  .legal-footer__seal-icon {
    width: 44px;
    height: 44px;
  }

  .legal-footer__seal-icon svg {
    width: 26px;
    height: 26px;
  }

  .legal-footer__seal em {
    display: none;
  }

  .legal-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 370px) {
  .legal-footer__top {
    grid-template-columns: 1fr;
  }

  .legal-footer__brand {
    grid-column: auto;
  }

  .legal-footer__legal-tools {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-footer__socials a,
  .legal-footer__seal {
    transition: none;
  }
}
