/* Legal links stay reachable beside both full-height and scrolling tools. */
.ds-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 18px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ds-muted, #68735f);
}
.ds-legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.ds-legal-nav a:hover { color: var(--ds-ink, #263022); text-decoration: underline; }
.ds-legal-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  margin: 0;
  padding: 0 10px env(safe-area-inset-bottom);
  border-top: 1px solid var(--ds-line, #e1e6d9);
  background: var(--ds-surface, #fff);
}
[data-designer-tool="impairment"] .app { grid-template-rows: auto minmax(0, 1fr) auto; }
[data-designer-tool="clone"] main > footer { flex-wrap: wrap; }
@media (max-width: 580px) {
  .ds-legal-nav { gap: 0 14px; font-size: 10px; }
  [data-designer-tool="clone"] main > footer > .ds-legal-nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
