/* Shared footer closing treatment for every legacy page template. */
.footer-legal {
  clear: both;
  width: 100%;
  margin: 4.5rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  color: inherit;
  font-size: .875rem;
  line-height: 1.6;
}

.footer-legal-container {
  padding-bottom: 2rem;
}

.footer-legal__notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 2.5rem;
  opacity: .72;
}

.footer-legal__notes p {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: .35rem;
  margin: 0;
}

.footer-legal__notes sup {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  margin-top: .05rem;
  border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  border-radius: 999px;
  color: inherit;
  font-size: .69rem;
  font-weight: 700;
  line-height: 1;
}

.footer-legal__company {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  color: inherit;
  opacity: .9;
  font-size: .81rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.footer-legal__copyright { margin-left: auto; }

@media (max-width: 991px) {
  /* Some legacy page templates tint the whole page pink. Give every mobile
     footer its own calm, readable surface instead of inheriting that colour. */
  footer.footer {
    background: #f4f5f9 !important;
    color: #190f3c !important;
  }

  footer.footer .text-w-600,
  footer.footer .text-grey,
  footer.footer .download-app-title,
  footer.footer a { color: #190f3c !important; }

  footer.footer .footer-social img { filter: none; }

  .footer-legal {
    margin-top: 2.5rem;
    padding-top: 1.35rem;
    font-size: .8rem;
  }

  .footer-legal__notes { grid-template-columns: 1fr; gap: .8rem; }
  .footer-legal__company { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .footer-legal__copyright { margin-left: 0; }
}
