/* Legal popups — Impressum & Datenschutz */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) var(--gutter, clamp(20px, 4vw, 56px)) max(20px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.2,.7,.2,1), visibility .35s cubic-bezier(.2,.7,.2,1);
}
.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, .78);
  backdrop-filter: blur(4px);
}
.legal-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fdfbf7;
  border: 1px solid #c9bfa6;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .28);
  padding: clamp(40px, 7vw, 52px) clamp(28px, 5vw, 44px) clamp(36px, 6vw, 44px);
  text-align: center;
}
.legal-modal__panel--wide {
  width: min(100%, 560px);
}
.legal-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid #c9bfa6;
  background: transparent;
  cursor: pointer;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
}
.legal-modal__close::before,
.legal-modal__close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1px;
  background: #1a1a1a;
  transform-origin: center;
}
.legal-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.legal-modal__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.legal-modal__close:hover {
  background: #9c8a2a;
  border-color: #9c8a2a;
}
.legal-modal__eyebrow {
  margin: 0 0 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: #7e6f1f;
}
.legal-modal__title {
  margin: 0 0 28px;
  font-family: 'Italiana', 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .04em;
  color: #1a1a1a;
}
.legal-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: #1a1a1a;
}
.legal-modal__list a {
  color: #7e6f1f;
  border-bottom: 1px solid transparent;
  transition: border-color .25s cubic-bezier(.2,.7,.2,1);
}
.legal-modal__list a:hover {
  border-bottom-color: #9c8a2a;
}
.legal-modal__text {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  color: #6b6555;
  text-align: center;
}
