/* Footer legal links */
.footer-section-v1 .footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}

.footer-section-v1 .footer-legal-sep {
  color: #F5F0E8;
  opacity: 0.4;
  font-size: 12px;
  user-select: none;
}

.footer-section-v1 .footer-legal-btn {
  font-family: 'Jost', 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #F5F0E8;
  opacity: 0.75;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.footer-section-v1 .footer-legal-btn:hover {
  opacity: 1;
}

/* Legal modals */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 20, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
}

.legal-modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(85vh, 720px);
  background: #F5F0E8;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(28, 28, 20, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.legal-modal.is-open .legal-modal__panel {
  transform: none;
}

.legal-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 0;
  flex-shrink: 0;
}

.legal-modal__heading {
  font-family: 'Playfair Display', 'Bodoni Moda', Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  color: #1C1C14;
  margin: 0;
}

.legal-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDE8DC;
  border: none;
  border-radius: 6px;
  color: #2C2C25;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.legal-modal__close:hover {
  background: #E0D9CC;
}

.legal-modal__body {
  padding: 20px 28px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-modal__body p {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  color: #3D3D32;
  margin: 0 0 16px;
}

.legal-modal__body p:last-child {
  margin-bottom: 0;
}

.legal-modal__body a {
  color: #2C2C25;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-modal__body a:hover {
  opacity: 0.75;
}

.legal-modal__body h3 {
  font-family: 'Jost', 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #2C2C25;
  margin: 24px 0 8px;
}

.legal-modal__body h3:first-child {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .legal-modal,
  .legal-modal__panel {
    transition: none;
  }

  .legal-modal__panel {
    transform: none;
  }
}

@media (max-width: 480px) {
  .legal-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .legal-modal__panel {
    max-height: 90vh;
    border-radius: 8px 8px 0 0;
  }

  .legal-modal__header {
    padding: 24px 20px 0;
  }

  .legal-modal__body {
    padding: 16px 20px 24px;
  }
}
