/* ============================================================
   PRIVACY MODAL — Industrial premium overlay
   ============================================================ */

/* ── Overlay backdrop ── */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.privacy-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Blurred dark backdrop */
.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 24, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Modal window ── */
.privacy-modal__window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: #FCFCFA;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    0 32px 80px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Entrance animation */
  transform: translateY(16px) scale(0.98);
  transition: transform 0.30s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* Left amber accent line */
.privacy-modal__window::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: rgba(217, 119, 6, 0.60);
  border-radius: 0 2px 2px 0;
}

/* ── Header ── */
.privacy-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 40px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  flex-shrink: 0;
}

.privacy-modal__header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.privacy-modal__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-amber);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.privacy-modal__label::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-amber);
  border-radius: 2px;
}

.privacy-modal__title {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  color: var(--c-graphite);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.privacy-modal__date {
  font-size: 12px;
  color: rgba(22, 32, 50, 0.40);
  line-height: 1.2;
}

/* Close button */
.privacy-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(22, 32, 50, 0.50);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.privacy-modal__close svg {
  width: 16px;
  height: 16px;
}

.privacy-modal__close:hover {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.20);
  color: var(--c-amber);
}

/* ── Scrollable body ── */
.privacy-modal__body {
  overflow-y: auto;
  padding: 28px 40px 36px;
  font-size: var(--text-sm);
  color: rgba(22, 32, 50, 0.70);
  line-height: 1.75;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 119, 6, 0.30) transparent;
}

.privacy-modal__body::-webkit-scrollbar {
  width: 4px;
}

.privacy-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-modal__body::-webkit-scrollbar-thumb {
  background: rgba(217, 119, 6, 0.30);
  border-radius: 4px;
}

.privacy-modal__body p {
  margin-bottom: 12px;
}

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

.privacy-modal__body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-graphite);
  line-height: 1.3;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 2px solid rgba(217, 119, 6, 0.55);
}

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

.privacy-modal__body ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.privacy-modal__body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 4px;
}

.privacy-modal__body ul li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.55);
  flex-shrink: 0;
  margin-top: 8px;
}

.privacy-modal__note {
  background: rgba(217, 119, 6, 0.04);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(22, 32, 50, 0.56);
  line-height: 1.65;
  margin: 14px 0;
  font-style: italic;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .privacy-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .privacy-modal__window {
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  .privacy-modal__header {
    padding: 24px 20px 18px;
  }

  .privacy-modal__body {
    padding: 20px 20px 28px;
  }

  .privacy-modal__window::before {
    display: none;
  }
}

/* Lock body scroll when modal open */
body.privacy-modal-open {
  overflow: hidden;
}
