.footer-row {
  display: grid;
  grid-template-columns: auto minmax(max-content, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding-right: 70px;
}

.footer-row small,
.footer-row .policy-links a,
.footer-row .policy-links span {
  font-size: 14px;
}

.footer-row .policy-links {
  justify-content: flex-end;
}

.footer-row .policy-links a:hover {
  color: var(--green);
}

.back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.footer-in-view .back-to-top {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.footer-in-view .back-to-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 980px) {
  .footer-row {
    grid-template-columns: auto 1fr;
    padding-right: 60px;
  }

  .footer-row small {
    justify-self: end;
  }

  .footer-row .policy-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .footer-row {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding-right: 56px;
  }

  .footer-row small {
    order: 3;
  }

  .footer-row .policy-links {
    order: 2;
    gap: 16px 24px;
  }

  .footer-row .brand img {
    width: 150px;
  }
}
