/* style/gdpr.css */

/* --- Base Styles and Typography (Color Contrast) --- */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* From shared.css body background */
}

.page-gdpr__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-gdpr__main-title {
  font-size: 36px;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-gdpr__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-gdpr__section-title {
  font-size: 28px;
  color: #FFD700; /* Gold for section titles */
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: left;
}

.page-gdpr__section-title--faq {
  text-align: center;
  margin-top: 0; /* Reset for FAQ section */
  margin-bottom: 40px;
}

.page-gdpr__text-block {
  margin-bottom: 20px;
  color: #e0e0e0;
}

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

.page-gdpr ul li {
  margin-bottom: 10px;
}

.page-gdpr strong {
  color: #FFD700; /* Highlight important terms */
}

.page-gdpr a {
  color: #FFD700; /* Gold for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr a:hover {
  color: #e6c200; /* Slightly darker gold on hover */
  text-decoration: underline;
}

/* --- Hero Banner Section --- */
.page-gdpr__hero-banner-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--header-offset, 120px); /* Assuming shared.css body padding-top is NOT set */
  margin-top: 0;
  background-color: #0a0a0a;
}

.page-gdpr__hero-banner-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-height: 500px; /* Limit height for banner effect */
  overflow: hidden;
}

.page-gdpr__hero-banner-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* --- Intro Section --- */
.page-gdpr__intro-section {
  padding: 60px 0;
  background: #0a0a0a; /* Dark background for intro */
  color: #ffffff;
}

/* --- Content Section --- */
.page-gdpr__content-section {
  padding: 60px 0;
  background: #1a1a1a; /* Slightly lighter dark background for content */
  color: #e0e0e0;
}

.page-gdpr__image-container {
  margin: 30px auto;
  text-align: center;
  max-width: 800px; /* Max width for content images */
}

.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- CTA Buttons --- */
.page-gdpr__cta-buttons {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-gdpr__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #FFD700; /* Gold button */
  color: #0a0a0a; /* Dark text on gold button */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
}

/* --- FAQ Section --- */
.page-gdpr__faq-section {
  padding: 60px 0;
  background: #0a0a0a; /* Dark background for FAQ */
  color: #ffffff;
}

/* FAQ容器样式 */
.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-gdpr__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;
  background: #1a1a1a; /* Slightly lighter dark background for answer */
  color: #e0e0e0;
}

/* FAQ展开 trạng thái - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-gdpr__faq-item.active .page-gdpr__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 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a; /* Darker background for question */
  border: 1px solid #444;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gdpr__faq-question:hover {
  background: #3a3a3a;
  border-color: #555;
}

.page-gdpr__faq-question:active {
  background: #4a4a4a;
}

/* Tiêu đề câu hỏi kiểu dáng */
.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: #FFD700; /* Gold for FAQ questions */
}

/* Biểu tượng chuyển đổi */
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #FFD700; /* Gold when active */
  transform: rotate(180deg); /* Rotate for minus sign effect */
}


/* --- Responsive Design (Desktop First) --- */

/* @media (max-width: 1024px) - Tablet */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 32px;
  }

  .page-gdpr__section-title {
    font-size: 26px;
  }

  .page-gdpr__description,
  .page-gdpr__text-block,
  .page-gdpr ul li,
  .page-gdpr p {
    font-size: 17px;
  }

  .page-gdpr__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-gdpr__faq-question h3 {
    font-size: 17px;
  }
}

/* @media (max-width: 768px) - Mobile */
@media (max-width: 768px) {
  /* HERO Banner Section */
  .page-gdpr__hero-banner-section {
    padding-top: var(--header-offset, 80px) !important; /* Adjusted for mobile, assuming header-offset changes */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-gdpr__hero-banner-container {
    max-height: 300px; /* Smaller banner height on mobile */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-gdpr__hero-banner-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Intro Section */
  .page-gdpr__intro-section .page-gdpr__container {
    padding: 30px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-gdpr__main-title {
    font-size: 26px;
    line-height: 1.4;
    padding: 0 10px;
  }

  .page-gdpr__description {
    font-size: 16px;
    padding: 0 10px;
    margin-bottom: 30px;
  }

  /* Content Section */
  .page-gdpr__content-section .page-gdpr__container {
    padding: 30px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-gdpr__section-title {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-gdpr__text-block,
  .page-gdpr ul li,
  .page-gdpr p {
    font-size: 15px;
    padding: 0 10px;
  }

  .page-gdpr ul {
    margin-left: 35px;
    padding-right: 10px;
  }

  .page-gdpr__image-container {
    padding: 0 15px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .page-gdpr__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* CTA Buttons */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .page-gdpr__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  /* FAQ Section */
  .page-gdpr__faq-section .page-gdpr__container {
    padding: 30px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-gdpr__section-title--faq {
    font-size: 22px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

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

  /* Universal image and container responsive styles */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-banner-section,
  .page-gdpr__intro-section,
  .page-gdpr__content-section,
  .page-gdpr__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed padding here to avoid double padding with inner containers */
  }
}

/* Contrast Fixes - applying the provided CSS for safety */
.page-gdpr__dark-bg {
  color: #ffffff;
  background: #0a0a0a; /* Ensure dark background */
}

.page-gdpr__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-gdpr__medium-bg {
  color: #000000;
  background: #FFD700; /* Example for brand color as medium background */
}

/* Ensure all links and text in dark sections are readable */
.page-gdpr__dark-section {
  background: #0a0a0a; /* Default dark background */
  color: #ffffff; /* White text on dark background */
}

.page-gdpr__dark-section a {
  color: #FFD700; /* Gold links on dark background */
}

/* Buttons for contrast */
.page-gdpr__btn-primary {
  background: #FFD700; /* Gold background */
  color: #000000; /* Black text for contrast */
  border: 2px solid transparent;
}

.page-gdpr__btn-primary:hover {
  background-color: #e6c200;
  color: #000000;
}

.page-gdpr__btn-secondary {
  background: #8B0000; /* Dark red background */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #8B0000;
}

.page-gdpr__btn-secondary:hover {
  background-color: #6a0000;
  color: #ffffff;
}

/* Text elements for contrast */
.page-gdpr p,
.page-gdpr li {
  color: #e0e0e0; /* Light gray for general text on dark backgrounds */
}

.page-gdpr h1, .page-gdpr h2, .page-gdpr h3, .page-gdpr h4, .page-gdpr h5, .page-gdpr h6 {
  color: #FFD700; /* Gold for headings */
}

/* Emergency contrast fix classes */
.page-gdpr__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-gdpr__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}