/* style/gdpr.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định cho nền sáng */
  background-color: #FFFFFF; /* Đảm bảo nền sáng cho nội dung chính */
}

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ, body đã xử lý --header-offset */
  text-align: center;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

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

.page-gdpr__hero-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__main-title {
  font-weight: 700;
  color: #26A9E0;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2em, 3.5vw, 3.2em); /* Sử dụng clamp để kiểm soát kích thước H1 */
}

.page-gdpr__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-gdpr__section {
  padding: 60px 20px;
  border-bottom: 1px solid #eeeeee;
}

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

.page-gdpr__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-gdpr__sub-title {
  font-size: 1.6em;
  color: #333333;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-gdpr__paragraph {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444444;
}

.page-gdpr__keyword {
  font-weight: bold;
  color: #26A9E0;
}

.page-gdpr__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #444444;
}

.page-gdpr__link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: 500;
}

.page-gdpr__link:hover {
  color: #1a7bb7;
}

.page-gdpr__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-gdpr__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-gdpr__text-block {
  flex: 1;
}

.page-gdpr__content-image {
  flex: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  min-width: 200px; /* Đảm bảo hình ảnh không nhỏ hơn 200px */
  min-height: 200px; /* Đảm bảo hình ảnh không nhỏ hơn 200px */
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 20px;
  background-color: #f0f8ff; /* Nền màu nhạt cho FAQ */
  border-top: 1px solid #e0e0e0;
}

.page-gdpr__faq-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-gdpr__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-question:hover {
  background-color: #f5f5f5;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.0em;
  color: #555555;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  max-height: 500px; /* Đủ lớn để chứa nội dung câu trả lời */
  padding-top: 10px;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−';
}

/* Details/Summary specific styles */
.page-gdpr__faq-item summary {
  list-style: none;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none;
}

/* CTA Section */
.page-gdpr__cta-section {
  background-color: #26A9E0; /* Màu chủ đạo làm nền */
  color: #ffffff; /* Chữ trắng cho nền tối */
  text-align: center;
  padding: 80px 20px;
  border-radius: 10px;
  margin-top: 60px;
  margin-bottom: 40px;
}

.page-gdpr__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  margin: 10px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: #EA7C07; /* Màu cam cho nút chính */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-gdpr__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #ffffff;
}

.page-gdpr__btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
  color: #1a7bb7;
}

.page-gdpr__btn-primary--large,
.page-gdpr__btn-secondary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-gdpr__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-gdpr__image-text-block--reverse {
    flex-direction: column-reverse;
  }

  .page-gdpr__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section,
  .page-gdpr__section,
  .page-gdpr__faq-section,
  .page-gdpr__cta-section {
    padding: 30px 15px;
  }

  .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-gdpr__section-title,
  .page-gdpr__faq-title,
  .page-gdpr__cta-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-gdpr__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-gdpr__paragraph,
  .page-gdpr__list-item,
  .page-gdpr__hero-description {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset; /* Cho phép co giãn nhỏ hơn 200px trên mobile nếu cần */
    min-height: unset;
  }
  
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__image-text-block,
  .page-gdpr__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary,
  .page-gdpr a[class*="button"],
  .page-gdpr a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px; /* Điều chỉnh padding cho mobile */
    font-size: 1em;
    margin: 8px 0; /* Khoảng cách dọc giữa các nút */
  }
  
  .page-gdpr__cta-section .page-gdpr__btn-primary,
  .page-gdpr__cta-section .page-gdpr__btn-secondary {
    display: block;
  }

  .page-gdpr__cta-buttons,
  .page-gdpr__button-group,
  .page-gdpr__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important; /* Xếp chồng các nút trên mobile */
    gap: 10px;
  }

  .page-gdpr__hero-section {
    padding-top: 10px !important;
  }

  .page-gdpr__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-gdpr__faq-toggle {
    font-size: 1.2em;
  }

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

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

/* Color Contrast Fixes (if needed, applied automatically based on body background) */
.page-gdpr__dark-bg {
  color: #ffffff; /* Nền tối, chữ sáng */
}

.page-gdpr__light-bg {
  color: #333333; /* Nền sáng, chữ tối */
}

/* Ensure no image filters */
.page-gdpr img {
  filter: none !important;
}