/* ===================
   隱私權政策樣式
   =================== */

/* 隱私權提示框 */
.pri_pro_box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: #1e5cb3;
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 1.5;
  font-family: "微軟正黑體", "Noto Sans TC", arial, "Microsoft JhengHei", sans-serif;
}

.pri_pro_box p {
  margin: 0 0 15px 0;
  color: white;
}

.pri_pro_box a {
  color: #FFD700;
  text-decoration: underline;
  font-weight: bold;
}

.pri_pro_box a:hover {
  color: #FFF;
}

.text-center {
  text-align: center;
}

.btn_agree {
  background-color: #0d5aa7;
  color: white;
  border: 2px solid white;
  padding: 8px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn_agree:hover {
  background-color: #035bb4;
  color: #0d5aa7;
  border-color: #0d5aa7;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 隱私權政策彈窗樣式 */
.privacy-policy-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 86vh;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
  overflow: hidden;
  font-family: "微軟正黑體", "Noto Sans TC", arial, "Microsoft JhengHei", sans-serif;
}

.privacy-policy-modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.privacy-policy-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  flex-shrink: 0;
}

.privacy-policy-header h1 {
  margin: 0;
  font-size: 22px;
  color: #1e5cb3;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #333;
  background-color: #e9ecef;
  border-radius: 50%;
}

.privacy-policy-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  max-height: calc(85vh - 180px);
}

/* 確保滾動條樣式 */
.privacy-policy-body::-webkit-scrollbar {
  width: 8px;
}

.privacy-policy-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.privacy-policy-body::-webkit-scrollbar-thumb {
  background: #1e5cb3;
  border-radius: 4px;
}

.privacy-policy-body::-webkit-scrollbar-thumb:hover {
  background: #0d5aa7;
}

.privacy-content h3 {
  color: #1e5cb3;
  margin: 24px 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid #e3f2fd;
  padding-bottom: 8px;
}

.privacy-content p {
  margin: 0 0 16px 0;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

.privacy-content ul {
  margin: 12px 0 16px 24px;
  color: #444;
  padding-left: 0;
}

.privacy-content li {
  margin-bottom: 8px;
  line-height: 1.6;
  position: relative;
}

.privacy-content li::marker {
  color: #1e5cb3;
}

.privacy-content .center-title {
  text-align: center;
  margin: 30px 0 25px 0;
  color: #1e5cb3;
  font-size: 20px;
  font-weight: 700;
  border: none;
  padding: 0;
}

.privacy-policy-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  background: #f8f9fa;
  flex-shrink: 0;
  min-height: 60px;
}

.btn-accept-modal {
  background-color: #1e5cb3;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-accept-modal:hover {
  background-color: #0d5aa7;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .pri_pro_box {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 13px;
  }

  .privacy-policy-modal {
    width: 95%;
    max-height: 95vh;
  }

  .privacy-policy-header h1 {
    font-size: 20px;
  }
}