.site-footer {
  position: relative;
  color: #ffffff;
  background: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-footer__accent {
  height: 5px;
  background: linear-gradient(90deg, #ff6600 0 68%, #ed1c24 68% 100%);
}

.site-footer__container {
  width: min(100% - 48px, 1170px);
  margin: 0 auto;
  padding: 72px 0 34px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(430px, 2.4fr) auto;
  gap: 48px;
  align-items: start;
}

.site-footer__brand-link {
  display: inline-block;
  border-radius: 4px;
}

.site-footer__logo {
  display: block;
  width: 196px;
  max-width: 100%;
  height: auto;
}

.site-footer__tagline {
  max-width: 220px;
  margin: 18px 0 20px;
  color: #a7a7a7;
  font-size: 0.94rem;
  line-height: 1.55;
}

.site-footer__app-link {
  display: inline-block;
  width: 196px;
  max-width: 100%;
  aspect-ratio: 639 / 247;
  overflow: hidden;
  background: url("../imagens/app/app_player.png") center / contain no-repeat;
  border-radius: 8px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-footer__app-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.site-footer__app-badge {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 38px;
}

.site-footer__heading {
  padding: 0;
  margin: 0 0 22px;
  color: #a7a7a7;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}

.site-footer__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__list li + li {
  margin-top: 13px;
}

.site-footer__link,
.site-footer__legal-link,
.site-footer__copyright a {
  color: #ffffff;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-footer__link {
  font-size: 0.98rem;
  line-height: 1.45;
}

.site-footer__link:hover,
.site-footer__legal-link:hover,
.site-footer__copyright a:hover {
  color: #ff8a3d;
  text-decoration: none;
}

.site-footer__socials {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #ffffff;
  background: #202124;
  border-radius: 50%;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.site-footer__social-link:hover {
  color: #ffffff;
  background: #ff6600;
  text-decoration: none;
  transform: translateY(-2px);
}

.site-footer__social-link .fab {
  display: block;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
}

.site-footer__bottom {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.site-footer__legal-link,
.site-footer__copyright {
  color: #a7a7a7;
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-footer__copyright {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.site-footer__back-to-top {
  position: fixed;
  z-index: 1030;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #ffffff;
  background: #202124;
  border: 2px solid #ff6600;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.site-footer__back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer__back-to-top:hover {
  background: #ff6600;
}

.site-footer__back-to-top-icon {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-top: 4px solid currentColor;
  border-left: 4px solid currentColor;
  transform: rotate(45deg);
}

.site-footer a:focus,
.site-footer button:focus {
  outline: 3px solid #ff9b59;
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .site-footer__main {
    grid-template-columns: 1fr auto;
  }

  .site-footer__links {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 767.98px) {
  .site-footer__container {
    width: min(100% - 40px, 1170px);
    padding: 54px 0 34px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .site-footer__links {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .site-footer__socials {
    grid-auto-flow: column;
    justify-content: start;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 48px;
  }

  .site-footer__copyright {
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .site-footer__container {
    width: min(100% - 32px, 1170px);
    padding: 46px 0 30px;
  }

  .site-footer__links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer__social-link {
    width: 46px;
    height: 46px;
  }

  .site-footer__back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
