/* Legal details shown instead of social links in the site footer. */
.footer .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Keep the logo link limited to its visible text, not the whole grid column. */
.footer > .footer-brand {
  width: fit-content;
  justify-self: start;
}

.footer .footer-legal span,
.footer > small {
  font: 10px/1.45 'DM Mono', monospace;
  letter-spacing: .055em;
  color: #d2d7cf;
  text-transform: none;
  overflow-wrap: anywhere;
}

.footer > small {
  white-space: nowrap;
}

@media (min-width: 1051px) {
  .footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .footer .footer-legal {
    justify-self: end;
    align-items: flex-end;
    text-align: right;
  }

  .footer > small {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 10px;
    text-align: center;
  }
}

@media (max-width: 1050px) {
  .footer {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    align-items: start !important;
  }

  .footer .footer-legal {
    gap: 5px;
    width: 100%;
  }

  .footer > small {
    white-space: normal;
    align-self: center;
    text-align: center;
    margin-top: 4px;
    order: 3;
  }
}
