.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.3rem;
  flex: 0 1 100%;
  min-width: 0;
  justify-content: flex-start;
}

footer .legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: .875rem;
  line-height: 1.35;
  white-space: normal;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.brief-commerce-footer > .brief-container:has(.legal-links) {
  flex-wrap: wrap;
}

.legal-document {
  max-width: 68ch;
  padding-block: clamp(1rem, 4vw, 3rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.brief-commerce .legal-document h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.12;
}

.legal-document h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.6em 0 .35em;
}

.legal-document :is(p, dl) { margin: .5em 0; }
.legal-document dt { margin-top: 1em; font-weight: 700; }
.legal-document dd { margin-inline-start: 0; }
.legal-draft { color: #5f493b; }
.legal-document [id] { scroll-margin-top: 100px; }
.legal-document ul { padding-inline-start: 1.4em; }
.legal-document li + li { margin-top: .5em; }
.cookie-notice[hidden], .legal-external[hidden], .legal-widget-prompt [hidden], .legal-widget-prompt[hidden] { display: none !important; }
.cookie-notice {
  box-sizing: border-box;
  position: fixed;
  z-index: 6;
  inset: auto auto max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  width: min(440px, calc(100% - 24px));
  padding: 12px 16px;
  background: #fffaf2;
  border: 1px solid #baa394;
  border-radius: 12px;
  color: #2a1d16;
  box-shadow: 0 5px 18px #2a1d162c;
}
footer .cookie-notice p { flex: 1 1 190px; margin: 0; font-size: 13px; line-height: 1.5; color: inherit; }
footer .cookie-notice a { display: inline; color: #713500; text-decoration: underline; white-space: normal; }
.cookie-notice button, .legal-widget-prompt button {
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid #9f4819;
  border-radius: 8px;
  background: #fff7eb;
  color: #682e13;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.legal-widget-prompt { padding: 16px; background: #fffaf2; color: #412b20; border: 1px solid #decab8; border-radius: 12px; }
.legal-widget-prompt p { margin: 0 0 10px; }
.contact-map-canvas:has(.legal-external[hidden]) { height: auto; }
.contact-map-canvas > [data-external-widget] { height: 100%; }
