:root {
  --primary-color: #0A1931; /* Deep Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a; /* From shared.css body background */
  --card-bg-dark: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark body */
  --card-bg-light: #ffffff;
  --border-color: #34495e;
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency, though body handles it */
  padding-bottom: 60px; /* Space above footer */
}

/* Fixed header padding */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 60px; /* Default for mobile, desktop overridden below */
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Desktop padding-top for fixed header */
@media (min-width: 769px) {
  .page-gdpr__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  }
}

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

.page-gdpr__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-gdpr__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark blue text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-gdpr__cta-button--secondary {
  background: var(--primary-color);
  color: var(--secondary-color); /* Gold text on dark blue button */
  border: 2px solid var(--secondary-color);
}

.page-gdpr__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark blue text on gold hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-gdpr__section {
  padding: 60px 0;
  background-color: var(--bg-dark); /* Ensure sections have dark background */
  color: var(--text-light);
}

.page-gdpr__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-gdpr__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.page-gdpr__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  filter: none; /* Ensure no color filters are applied */
}

.page-gdpr__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gdpr__card {
  background: var(--card-bg-dark); /* Dark card background */
  color: var(--text-light); /* Light text for dark card */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-gdpr__card-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-gdpr__card-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: var(--text-light);
}

/* Specific card styles for light background if needed (e.g. for contrast) */
.page-gdpr__card.page-gdpr__light-bg {
  background: var(--card-bg-light); /* Light card background */
  color: var(--text-dark); /* Dark text for light card */
  border: 1px solid #e0e0e0;
}

.page-gdpr__card.page-gdpr__light-bg .page-gdpr__card-title {
  color: var(--primary-color); /* Dark title for light card */
}

.page-gdpr__card.page-gdpr__light-bg .page-gdpr__card-text {
  color: var(--text-dark); /* Dark text for light card */
}

.page-gdpr__list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-gdpr__list-item {
  background: var(--card-bg-dark); /* Dark background for list items */
  color: var(--text-light); /* Light text */
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  border-left: 5px solid var(--secondary-color);
  font-size: 1.05em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__list-item strong {
  color: var(--secondary-color);
}

.page-gdpr__link-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-gdpr__link-button:hover {
  background: #e6c200;
}

.page-gdpr__contact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-gdpr__contact-item {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-gdpr__contact-item strong {
  color: var(--secondary-color);
}

.page-gdpr__contact-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__contact-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

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

/* FAQ容器样式 */
.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg-dark); /* Dark background for FAQ item */
  color: var(--text-light); /* Light text */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 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 25px;
  opacity: 0;
  color: var(--text-light);
}

/* FAQ展开状态 - 🚨 使用!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 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for answer */
  border-radius: 0 0 8px 8px;
}

/* Question styles */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  border-radius: 8px; /* Only top corners, bottom will be rounded by answer if active */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gdpr__faq-item.active .page-gdpr__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-gdpr__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-gdpr__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Question title styles */
.page-gdpr__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: var(--secondary-color);
}

/* Toggle icon */
.page-gdpr__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-gdpr__faq-item.active .page-gdpr__faq-toggle {
  transform: rotate(180deg);
  color: var(--text-light);
}

.page-gdpr__conclusion-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 80px 15px 40px; /* Mobile: Adjust based on fixed header height */
    padding-top: 100px !important; /* Mobile override for padding-top */
  }

  .page-gdpr__hero-title {
    font-size: 2em;
  }

  .page-gdpr__hero-description {
    font-size: 1em;
  }

  .page-gdpr__hero-cta,
  .page-gdpr__conclusion-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-gdpr__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-gdpr__section {
    padding: 40px 0;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-gdpr__text-block {
    font-size: 0.95em;
  }

  .page-gdpr__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 25px;
  }

  .page-gdpr__card-title {
    font-size: 1.2em;
  }

  .page-gdpr__list-item {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-gdpr__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .page-gdpr__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px); /* Leave space for toggle */
  }

  .page-gdpr__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }

  .page-gdpr__faq-item.active .page-gdpr__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image responsive adjustments */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__section,
  .page-gdpr__grid,
  .page-gdpr__card,
  .page-gdpr__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific override for .page-gdpr__container to prevent double padding */
  .page-gdpr__section .page-gdpr__container {
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-gdpr__section .page-gdpr__container > .page-gdpr__text-block,
  .page-gdpr__section .page-gdpr__container > .page-gdpr__list,
  .page-gdpr__section .page-gdpr__container > .page-gdpr__image,
  .page-gdpr__section .page-gdpr__container > .page-gdpr__link-button,
  .page-gdpr__section .page-gdpr__container > .page-gdpr__contact-list,
  .page-gdpr__section .page-gdpr__container > .page-gdpr__faq-list,
  .page-gdpr__section .page-gdpr__container > .page-gdpr__conclusion-cta {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure contrast for specific elements if needed, though default dark bg/light text should handle most */
/* Example: if a section background changes, adjust text */
.page-gdpr__section--intro {
  background: var(--primary-color); /* Dark blue section */
  color: var(--text-light);
}
.page-gdpr__section--intro .page-gdpr__section-title {
  color: var(--secondary-color);
}
.page-gdpr__section--intro .page-gdpr__text-block {
  color: var(--text-light);
}

.page-gdpr__section--protection {
  background: #1a2a43; /* Slightly lighter dark blue for contrast */
  color: var(--text-light);
}
.page-gdpr__section--protection .page-gdpr__section-title {
  color: var(--secondary-color);
}
.page-gdpr__section--protection .page-gdpr__text-block {
  color: var(--text-light);
}

/* Ensure proper contrast for light background cards within a dark section */
.page-gdpr__section--protection .page-gdpr__card.page-gdpr__light-bg {
  background: var(--card-bg-light); /* White background */
  color: var(--text-dark); /* Dark text */
}
.page-gdpr__section--protection .page-gdpr__card.page-gdpr__light-bg .page-gdpr__card-title {
  color: var(--primary-color); /* Dark blue title */
}
.page-gdpr__section--protection .page-gdpr__card.page-gdpr__light-bg .page-gdpr__card-text {
  color: var(--text-dark); /* Dark text */
}