/* ==========================================================================
   CHÁCARA VITÓRIA — MODAIS & ELEMENTOS LEGAIS (LGPD & TERMOS)
   ========================================================================== */

/* 1. Base Overlay para Diálogos e Modais */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 30, 23, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  padding: 1.25rem;
}

.modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

/* 2. Caixa Padrão de Modal (ex: Confirmação de Reserva) */
.modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  text-align: center;
  border: 1px solid rgba(232, 227, 218, 0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #718274;
  padding: 0.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal-close-icon:hover {
  color: #172c24;
  background: #f0ede6;
}

.confirm-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #f3efe6;
  color: #c85a32;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* 3. Diálogos de Conteúdo Legal (LGPD & Termos de Uso) */
.legal-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 2.25rem 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  text-align: left;
  border: 1px solid rgba(232, 227, 218, 0.8);
}

.legal-modal-header {
  border-bottom: 1px solid #ede8df;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.legal-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c85a32;
  margin-bottom: 0.35rem;
}

.legal-modal-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #172c24;
  margin: 0;
  line-height: 1.25;
}

.legal-modal-body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #4a5c51;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-section h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #172c24;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-section p {
  margin: 0;
}

.legal-section ul {
  margin: 0.4rem 0 0 0;
  padding-left: 1.25rem;
}

.legal-section li {
  margin-bottom: 0.3rem;
}

.legal-highlight-box {
  background: #f7f5f0;
  border-left: 3px solid #829075;
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.8125rem;
  color: #31443a;
}

.legal-modal-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ede8df;
  display: flex;
  justify-content: flex-end;
}

/* 4. Footer Legal Bar */
.footer-legal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #abb7a8;
}

.footer-legal-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: #abb7a8;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-legal-btn:hover {
  color: #ffffff;
}

.footer-admin-link {
  color: #abb7a8;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-admin-link:hover {
  color: #ffffff;
}

.footer-dot {
  color: #55685d;
  user-select: none;
}

/* 5. Checkbox de Consentimento LGPD no Formulário */
.form-consent-group {
  margin-top: 0.85rem;
  margin-bottom: 0.65rem;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: #55685d;
  cursor: pointer;
  line-height: 1.5;
  text-align: left;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 0.18rem;
  width: 17px;
  height: 17px;
  accent-color: #233d33;
  cursor: pointer;
  flex-shrink: 0;
}

.inline-legal-link {
  background: transparent;
  border: none;
  padding: 0;
  color: #172c24;
  font-size: inherit;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-legal-link:hover {
  color: #c85a32;
}

@media (max-width: 640px) {
  .legal-modal-dialog {
    padding: 1.75rem 1.25rem;
  }
  .legal-modal-title {
    font-size: 1.45rem;
  }
  .footer-legal-bar {
    gap: 0.35rem;
  }
}
