/* The Blog link uses the same typography as the existing legal links. */
footer .legal-section .legal-text-row {
  flex-wrap: wrap;
  column-gap: 0.25rem;
  row-gap: 0;
}

footer .legal-section .legal-text-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

footer .legal-section .mln-blog-footer {
  min-width: 44px;
  text-decoration: none;
}

footer .legal-section .mln-blog-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

footer .legal-section a:focus-visible,
.ml-page main > footer > .mln-blog-footer:focus-visible {
  outline: 2px solid #dffc1b;
  outline-offset: 2px;
}

/* Compatibility for the older company plugin's independent footer. */
.ml-page main > footer:has(> .mln-blog-footer) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.ml-page main > footer > .mln-blog-footer {
  display: inline-flex;
  align-items: center;
  grid-column: 2;
  justify-self: end;
  justify-content: flex-end;
  min-height: 44px;
  color: #d8e6f0;
  font: 500 15px/1.3 "Segoe UI", Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 767px) {
  .ml-page main > footer:has(> .mln-blog-footer) {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
}
