/* style/privacy-policy.css */

/* Base styles for the privacy policy page */
.page-privacy-policy {
  color: #ffffff; /* Light text for dark body background #111 */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-privacy-policy a {
  color: #FFD700; /* Gold links for visibility */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-privacy-policy a:hover {
  color: #F0B90B; /* Slightly darker gold on hover */
}

.page-privacy-policy__hero-banner {
  background-color: #000080; /* Dark blue background for the hero banner */
  padding: 80px 20px;
  text-align: center;
  border-bottom: 2px solid #FFD700; /* Gold border */
}

.page-privacy-policy__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-privacy-policy__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-privacy-policy__intro-description {
  font-size: 18px;
  line-height: 1.6;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

.page-privacy-policy__content-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
}

.page-privacy-policy__container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-privacy-policy__article {
  line-height: 1.7;
  font-size: 16px;
}

.page-privacy-policy__section-title {
  font-size: 28px;
  color: #FFD700; /* Gold for main section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-privacy-policy__sub-section-title {
  font-size: 22px;
  color: #f0f0f0; /* Light grey for sub-section titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-privacy-policy ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-privacy-policy li {
  margin-bottom: 8px;
  color: #e0e0e0;
}

.page-privacy-policy__image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-privacy-policy__cta-section {
  text-align: center;
  background-color: #000080; /* Dark blue background for CTA */
  padding: 40px;
  border-radius: 10px;
  margin-top: 50px;
  border: 1px solid #FFD700;
}

.page-privacy-policy__cta-section p {
  font-size: 20px;
  margin-bottom: 25px;
  color: #ffffff;
  font-weight: 500;
}

.page-privacy-policy__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__cta-button:hover {
  background-color: #F0B90B; /* Slightly darker gold on hover */
  color: #000050;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  margin-top: 60px;
  background-color: #1a1a1a;
  padding: 40px 0;
  border-top: 1px solid #333;
}

.page-privacy-policy__faq-list {
  margin-top: 30px;
}

/* FAQ容器样式 */
.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #222222; /* Darker background for FAQ items */
  border: 1px solid #333333;
}

/* FAQ默认状态 - 答案隐藏 */
.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;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-privacy-policy__faq-item.active .page-privacy-policy__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: #2a2a2a; /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #222222;
  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: #2c2c2c;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-question {
  background: #2a2a2a;
  border-bottom: 1px solid #3a3a3a;
  border-radius: 5px 5px 0 0;
}

/* 问题标题样式 */
.page-privacy-policy__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-privacy-policy__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold toggle icon */
  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: 30px;
  height: 30px;
}

.page-privacy-policy__faq-item.active .page-privacy-policy__faq-toggle {
  color: #F0B90B;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-privacy-policy__main-title {
    font-size: 38px;
  }
  .page-privacy-policy__intro-description {
    font-size: 17px;
  }
  .page-privacy-policy__section-title {
    font-size: 26px;
  }
  .page-privacy-policy__sub-section-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-privacy-policy {
    padding-top: var(--header-offset, 80px) !important; /* Adjust padding for mobile header */
    font-size: 15px;
    line-height: 1.6;
  }

  .page-privacy-policy__hero-banner {
    padding: 60px 15px;
  }

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

  .page-privacy-policy__intro-description {
    font-size: 15px;
  }

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

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

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

  .page-privacy-policy__image {
    margin: 20px auto;
  }

  .page-privacy-policy__cta-section {
    padding: 30px 15px;
    margin-top: 40px;
  }

  .page-privacy-policy__cta-section p {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .page-privacy-policy__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Ensure button responsiveness */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Mobile Styles */
  .page-privacy-policy__faq-section {
    padding: 30px 0;
    margin-top: 40px;
  }

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

  /* General image and container responsiveness for mobile */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-privacy-policy__container,
  .page-privacy-policy__article,
  .page-privacy-policy__cta-section,
  .page-privacy-policy__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}