.page-gdpr {
  color: #ffffff; /* Dark body background #1a1a1a, so text must be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-gdpr__hero-section {
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Brand colors for hero background */
  padding: 80px 0;
  text-align: center;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  margin-top: 0;
}

.page-gdpr__main-title {
  font-size: 3em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background: #FFD700;
  color: #1a1a1a; /* Dark text on gold button for contrast */
  border: 2px solid #FFD700;
}

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

.page-gdpr__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-gdpr__btn-secondary:hover {
  background: #FFD700;
  color: #1a1a1a;
}

.page-gdpr__content-section,
.page-gdpr__rights-section,
.page-gdpr__processing-section,
.page-gdpr__measures-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__updates-section {
  padding: 60px 0;
}

.page-gdpr__dark-bg {
  background-color: #1a1a1a; /* Body background color */
  color: #ffffff;
}

.page-gdpr__light-bg {
  background-color: #2a2a2a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-gdpr__dark-text {
  color: #f0f0f0; /* Ensure text is light on light-bg section */
}

.page-gdpr__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
}

.page-gdpr__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-gdpr__article-content p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-gdpr__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-gdpr__image--full-width {
  width: 100%;
}

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

.page-gdpr__right-card,
.page-gdpr__measure-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-gdpr__right-card:hover,
.page-gdpr__measure-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-gdpr__right-icon,
.page-gdpr__measure-icon {
  width: 100%; /* Ensure images are not small icons */
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-gdpr__right-title,
.page-gdpr__measure-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-gdpr__right-text,
.page-gdpr__measure-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-gdpr__process-item {
  background-color: #ffffff; /* White background for process items */
  color: #333333; /* Dark text on white background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__process-title {
  font-size: 1.5em;
  color: #8B0000; /* Auxiliary color for titles */
  margin-bottom: 15px;
}

.page-gdpr__process-item p {
  color: #333333;
}

.page-gdpr__contact-info {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-gdpr__contact-info p {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-gdpr__link {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: #FFD700;
}

.page-gdpr__cta-buttons--center {
  margin-top: 50px;
}

.page-gdpr__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

/* FAQ容器样式 */
.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08);
}

/* 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;
  padding: 0 15px;
  opacity: 0;
  color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.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;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  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: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

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

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

/* 切换图标 */
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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-gdpr__faq-item.active .page-gdpr__faq-toggle {
  color: #8B0000;
  transform: rotate(45deg);
}

/* 移动端适配 */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: 2.5em;
  }
  .page-gdpr__section-title {
    font-size: 2em;
  }
  .page-gdpr__rights-grid,
  .page-gdpr__measures-grid,
  .page-gdpr__process-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-gdpr__hero-section {
    padding: 60px 0;
    padding-top: 0 !important; /* Assuming shared.css handles body padding-top */
  }

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

  .page-gdpr__intro-text {
    font-size: 1em;
  }

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-gdpr__section-title {
    font-size: 1.8em;
  }

  .page-gdpr__description {
    font-size: 1em;
  }

  .page-gdpr__article-content p {
    font-size: 0.95em;
  }

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

  .page-gdpr__rights-grid,
  .page-gdpr__measures-grid,
  .page-gdpr__process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__right-card,
  .page-gdpr__measure-card,
  .page-gdpr__process-item {
    padding: 20px;
  }

  .page-gdpr__right-title,
  .page-gdpr__measure-title {
    font-size: 1.2em;
  }

  .page-gdpr__contact-info {
    padding: 20px;
  }

  .page-gdpr__contact-info p {
    font-size: 1em;
  }

  .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;
  }
}