/* style/privacy-policy.css */

/* Biến màu sắc */
:root {
  --primary-color: #FFD700; /* Vàng */
  --secondary-color: #1E90FF; /* Xanh lam */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --dark-bg-1: #0d0d0d; /* Từ shared.css */
}

.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Mặc định cho nền tối của body */
  background-color: var(--dark-bg-1); /* Từ shared.css */
  padding-top: 120px; /* Đảm bảo nội dung không bị header cố định che khuất trên desktop */
}

@media (max-width: 768px) {
  .page-privacy-policy {
    padding-top: 100px; /* Điều chỉnh cho mobile */
  }
}

/* HERO Section */
.page-privacy-policy__hero-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  text-align: center;
  padding-top: 180px; /* Đảm bảo HERO không bị che khuất trên desktop */
}

.page-privacy-policy__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-privacy-policy__hero-content {
  margin-bottom: 30px;
  max-width: 800px;
}

.page-privacy-policy__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-privacy-policy__hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-privacy-policy__highlight-text {
  font-weight: bold;
  color: #fff;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 30px;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Nội dung chính */
.page-privacy-policy__content-section {
  padding: 40px 20px;
  background-color: var(--dark-bg-1);
  color: var(--text-light); /* Đảm bảo văn bản sáng trên nền tối */
}

.page-privacy-policy__container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #1a1a1a; /* Nền tối hơn cho phần nội dung để tạo sự phân biệt */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-privacy-policy__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color); /* Sử dụng màu vàng cho tiêu đề */
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.page-privacy-policy__sub-section-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Sử dụng màu xanh lam cho tiêu đề phụ */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-privacy-policy__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-privacy-policy__list-item {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-privacy-policy__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-privacy-policy__link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-privacy-policy__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-privacy-policy__contact-item {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-light);
}

/* FAQ Section */
.page-privacy-policy__faq-list {
  margin-top: 40px;
}

.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a; /* Nền tối hơn cho FAQ item */
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #3a3a3a; /* Nền tối hơn cho câu hỏi */
  border: 1px solid #4a4a4a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-privacy-policy__faq-question:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Màu vàng cho dấu toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Xoay dấu '+' thành 'x' hoặc '-' */
}

.page-privacy-policy__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* Đảm bảo đủ cao cho mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

.page-privacy-policy__faq-answer p {
  margin: 0;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__container {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding-top: 160px !important; /* Điều chỉnh cho mobile */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-privacy-policy__hero-description {
    font-size: 16px;
  }

  .page-privacy-policy__hero-image {
    border-radius: 4px;
  }

  .page-privacy-policy__content-section {
    padding: 20px 15px;
  }

  .page-privacy-policy__container {
    padding: 25px 20px;
  }

  .page-privacy-policy__section-title {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-privacy-policy__sub-section-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy__text-block,
  .page-privacy-policy__list-item,
  .page-privacy-policy__contact-item {
    font-size: 15px;
  }

  .page-privacy-policy__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-privacy-policy__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-privacy-policy__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-privacy-policy__faq-answer {
    padding: 0 15px;
  }
  
  .page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-privacy-policy__hero-title {
    font-size: 28px;
  }

  .page-privacy-policy__section-title {
    font-size: 24px;
  }

  .page-privacy-policy__sub-section-title {
    font-size: 18px;
  }
  .page-privacy-policy__container {
    padding: 20px 15px;
  }
  .page-privacy-policy__faq-question h3 {
    font-size: 14px;
  }
  .page-privacy-policy__faq-toggle {
    font-size: 18px;
  }
}

/* Đảm bảo tất cả hình ảnh đều phản hồi */
.page-privacy-policy img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}