html[data-bootstrap-surface="public"] .sm-ogl-attribution {
  width: 100%;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  line-height: 1.55;
  color: inherit;
  opacity: 0.82;
}

/* Keep the normal copyright/company details on their own row and place the
   OGL attribution underneath. Without wrapping, the existing footer flex row
   tries to squeeze all three items into one line. */
html[data-bootstrap-surface="public"] .smx-footer-legal:has(.sm-ogl-attribution) {
  flex-wrap: wrap;
  align-items: center;
}

html[data-bootstrap-surface="public"] .smx-footer-legal:has(.sm-ogl-attribution) > span {
  flex: 0 1 auto;
  min-width: 0;
}

html[data-bootstrap-surface="public"] .smx-footer-legal:has(.sm-ogl-attribution) > .sm-ogl-attribution {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 0;
}

html[data-bootstrap-surface="public"] .sm-ogl-attribution a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

html[data-bootstrap-surface="public"] .sm-ogl-attribution a:hover {
  opacity: 1;
}

html[data-bootstrap-surface="public"] .sm-ogl-attribution a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* When a footer has no recognised legal strip, the attribution is appended
   directly to the footer. In that fallback case, respect the footer's own
   horizontal padding instead of adding another nested gutter. */
html[data-bootstrap-surface="public"] footer > .sm-ogl-attribution {
  box-sizing: border-box;
  width: 100%;
  margin-top: 18px;
  padding: 14px 0 20px;
}

html[data-bootstrap-surface="public"] .smx-footer-business .sm-ogl-attribution {
  border-top-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 720px) {
  html[data-bootstrap-surface="public"] .sm-ogl-attribution {
    font-size: 11px;
    line-height: 1.6;
  }

  html[data-bootstrap-surface="public"] .smx-footer-legal:has(.sm-ogl-attribution) {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
  }

  html[data-bootstrap-surface="public"] .smx-footer-legal:has(.sm-ogl-attribution) > .sm-ogl-attribution {
    flex: none;
    width: 100%;
    margin-top: 4px;
  }
}
