/* 개인정보 처리방침 모달 */
.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.privacy-modal.active {
  opacity: 1;
  visibility: visible;
}

.privacy-modal-content {
  background: white;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.privacy-modal.active .privacy-modal-content {
  transform: translateY(0);
}

.privacy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e1e5e9;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.privacy-modal-header .close-btn{
  border: none;
  background: none;
}

.privacy-modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

.privacy-modal-body {
  padding: 1.5rem;
}

.privacy-content h4 {
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.privacy-content h4:first-child {
  margin-top: 0;
}

.privacy-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.privacy-content ul {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

.privacy-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid #e1e5e9;
  position: sticky;
  bottom: 0;
  background: white;
}

/* 모달 버튼 스타일 */
.privacy-modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 100px;
  text-align: center;
}

.privacy-modal-footer .btn-primary {
  background: linear-gradient(135deg, #717171 0%, #000000 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(40, 40, 40, 0.3);
}

.privacy-modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(68, 68, 68, 0.4);
}

.privacy-modal-footer .btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.privacy-modal-footer .btn-outline {
  background: transparent;
  color: #6b7280;
  border: 2px solid #e1e5e9;
}

.privacy-modal-footer .btn-outline:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.privacy-modal-footer .btn-outline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* 다크 모드에서 개인정보 처리방침 모달 */
@media (prefers-color-scheme: dark) {
  .privacy-modal-content {
    background: #1f2937;
    color: #f9fafb;
  }
  
  .privacy-modal-header {
    background: #1f2937;
    border-bottom-color: #374151;
  }
  
  .privacy-modal-header h3 {
    color: #f9fafb;
  }
  
  .privacy-content h4 {
    color: #f9fafb;
  }
  
  .privacy-content p,
  .privacy-content ul {
    color: #d1d5db;
  }
  
  .privacy-modal-footer {
    background: #1f2937;
    border-top-color: #374151;
  }
  
  .privacy-modal-footer .btn-outline {
    color: #9ca3af;
    border-color: #4b5563;
  }
  
  .privacy-modal-footer .btn-outline:hover {
    background: #374151;
    color: #f9fafb;
    border-color: #6b7280;
  }
}

/* 반응형 디자인에서 개인정보 처리방침 모달 */
@media (max-width: 768px) {
  .privacy-modal {
    padding: 0.5rem;
  }
  
  .privacy-modal-content {
    max-height: 90vh;
  }
  
  .privacy-modal-header,
  .privacy-modal-body,
  .privacy-modal-footer {
    padding: 1rem;
  }
}
