/* Legal links beside the existing company signature. */
.footer.footer-v28 .footer-signature-row:has(.footer-legal-v116) {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
  gap: 8px 40px;
}

.footer.footer-v28 .footer-signature-row:has(.footer-legal-v116) > .footer-company {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.footer.footer-v28 .footer-legal-v116 {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 26px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.footer.footer-v28 .footer-legal-v116 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #4e5d64;
  font-family: var(--df-ui-font, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-decoration: none;
}

.footer.footer-v28 .footer-legal-v116 a:hover,
.footer.footer-v28 .footer-legal-v116 a[aria-current="page"] {
  color: var(--blue, #4b46c8);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer.footer-v28 .footer-legal-v116 a:focus-visible {
  outline: 3px solid var(--blue, #4b46c8);
  outline-offset: 4px;
}

.footer.footer-v28 .footer-signature-row:has(.footer-legal-v116) > .footer-copyright {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
}

@media (max-width: 760px) {
  .footer.footer-v28 .footer-signature-row:has(.footer-legal-v116) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer.footer-v28 .footer-legal-v116 {
    justify-content: flex-start;
    gap: 4px 24px;
  }

  .footer.footer-v28 .footer-signature-row:has(.footer-legal-v116) > .footer-copyright {
    text-align: left;
  }
}
