
/* ===== 팝업 오버레이 ===== */
#privacy-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#privacy-overlay.show {
  display: flex;
}

/* ===== 팝업 본체 ===== */
#privacy-popup {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  margin: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  box-sizing: border-box;
}

/* ===== 헤더 ===== */
.pp-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.pp-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
}
.pp-header-date {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}
.pp-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #9ca3af;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s;
}
.pp-close-btn:hover { color: #374151; }

/* ===== 본문 스크롤 영역 ===== */
.pp-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.pp-intro {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.75;
  margin: 0 0 16px;
}

/* ===== 변경전/후 비교 테이블 ===== */
.pp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.pp-col {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.pp-col.after {
  border-color: #93c5fd;
}
.pp-col-head {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}
.pp-col.before .pp-col-head {
  background: #f9fafb;
  color: #6b7280;
  border-color: #e5e7eb;
}
.pp-col.after .pp-col-head {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}
.pp-col-body {
  padding: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: #374151;
  min-height: 80px;
}

/* 변경 항목이 여러 개일 때 구분선 */
.pp-divider {
  border: none;
  border-top: 1px dashed #e5e7eb;
  margin: 12px 0;
}

/* ===== 푸터 ===== */
.pp-footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 8px;
  flex-wrap: wrap;
}
.pp-today-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
}
.pp-today-label input[type="checkbox"] {
  cursor: pointer;
  width: 15px;
  height: 15px;
}
.pp-confirm-btn {
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.pp-confirm-btn:hover { background: #1e40af; }

/* ===== 반응형 ===== */
@media (max-width: 480px) {
  .pp-compare { grid-template-columns: 1fr; }
}