/* Privacy policy modal */

.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.privacy-modal {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.privacy-modal-overlay.is-open .privacy-modal {
  transform: translateY(0) scale(1);
}

html.dark .privacy-modal {
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.privacy-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

html.dark .privacy-modal__header {
  border-bottom-color: #1f2937;
}

.privacy-modal__header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

html.dark .privacy-modal__header h2 {
  color: #f8fafc;
}

.privacy-modal__header p {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.privacy-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: transparent;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.privacy-modal__close:hover {
  border-color: #34d399;
  color: #059669;
  background: #ecfdf5;
}

html.dark .privacy-modal__close {
  border-color: #334155;
  color: #cbd5e1;
}

html.dark .privacy-modal__close:hover {
  border-color: #34d399;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
}

.privacy-modal__body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.privacy-modal__body h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

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

html.dark .privacy-modal__body h3 {
  color: #f8fafc;
}

.privacy-modal__body p,
.privacy-modal__body li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

html.dark .privacy-modal__body p,
html.dark .privacy-modal__body li {
  color: #94a3b8;
}

.privacy-modal__body ul {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.privacy-modal__body a {
  color: #059669;
  text-decoration: underline;
}

html.dark .privacy-modal__body a {
  color: #34d399;
}

.privacy-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

html.dark .privacy-modal__footer {
  border-top-color: #1f2937;
}

a.privacy-policy-link {
  color: #059669;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

a.privacy-policy-link:hover {
  color: #047857;
}

html.dark a.privacy-policy-link {
  color: #34d399;
}

html.dark a.privacy-policy-link:hover {
  color: #6ee7b7;
}

#contact-form {
  scroll-margin-top: 7rem;
}
