/* style/gdpr.css */
/* body đã padding-top: var(--header-offset) từ shared.css, trang này không cần thêm */

:root {
  --page-gdpr-primary-color: #26A9E0;
  --page-gdpr-secondary-color: #FFFFFF;
  --page-gdpr-text-dark: #333333;
  --page-gdpr-text-light: #ffffff;
  --page-gdpr-bg-dark: #000000; /* Body background */
  --page-gdpr-bg-light: #ffffff;
  --page-gdpr-login-color: #EA7C07;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-gdpr-text-light); /* Mặc định cho nền tối của body */
  background-color: var(--page-gdpr-bg-dark); /* Đảm bảo nền body tối */
}

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

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn so với --header-offset */
  min-height: 500px;
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
  overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Giảm độ sáng để chữ dễ đọc hơn trên ảnh */
  display: block;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Nền overlay nhẹ để tăng độ tương phản */
  border-radius: 8px;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Sử dụng clamp cho kích thước linh hoạt */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-gdpr-text-light);
}

.page-gdpr__description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: var(--page-gdpr-text-light);
}

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.page-gdpr__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Sections */
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__security-section,
.page-gdpr__faq-section,
.page-gdpr__contact-section,
.page-gdpr__cta-section {
  padding: 60px 0;
}

.page-gdpr__light-bg {
  background-color: var(--page-gdpr-bg-light);
  color: var(--page-gdpr-text-dark);
}

.page-gdpr__dark-bg {
  background-color: var(--page-gdpr-primary-color); /* Sử dụng màu thương hiệu cho nền tối */
  color: var(--page-gdpr-text-light);
}

/* Buttons */
.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Ngắt từ khi cần */
}

.page-gdpr__btn-primary {
  background-color: var(--page-gdpr-login-color); /* Màu đăng nhập làm màu chính */
  color: var(--page-gdpr-text-light);
  border: 2px solid var(--page-gdpr-login-color);
}

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--page-gdpr-login-color), 10%); /* Sử dụng hàm darken nếu có tiền xử lý CSS */
  border-color: darken(var(--page-gdpr-login-color), 10%);
}

.page-gdpr__btn-secondary {
  background-color: transparent;
  color: var(--page-gdpr-primary-color);
  border: 2px solid var(--page-gdpr-primary-color);
}

.page-gdpr__btn-secondary:hover {
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
}

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

.page-gdpr__principle-card {
  background-color: var(--page-gdpr-bg-light);
  color: var(--page-gdpr-text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

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

.page-gdpr__content-image {
  display: block;
  margin: 40px auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Rights List */
.page-gdpr__rights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-gdpr__right-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--page-gdpr-text-light);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__item-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-gdpr-secondary-color);
}

/* Security Features */
.page-gdpr__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-gdpr__feature-item {
  background-color: var(--page-gdpr-bg-light);
  color: var(--page-gdpr-text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-gdpr__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__feature-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-gdpr-primary-color);
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 40px;
}

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-gdpr-text-light);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-gdpr__faq-qtext {
  flex-grow: 1;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  content: '−'; /* Cập nhật dấu trừ khi mở */
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--page-gdpr-text-light);
}

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

.page-gdpr__faq-item summary {
  list-style: none;
}

/* Contact Section */
.page-gdpr__contact-info {
  margin-top: 30px;
  font-size: 1.1em;
  text-align: center;
}

.page-gdpr__contact-info p {
  margin-bottom: 10px;
}

.page-gdpr__contact-info a {
  color: var(--page-gdpr-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-gdpr__contact-info a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-gdpr__cta-section {
  text-align: center;
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-text-light);
  padding: 80px 0;
}

.page-gdpr__cta-section .page-gdpr__section-title {
  color: var(--page-gdpr-text-light);
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-gdpr__hero-content {
    padding: 15px;
  }

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

  .page-gdpr__description {
    font-size: clamp(0.9em, 1.8vw, 1.1em);
  }

  .page-gdpr__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }
}

@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-gdpr__hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-gdpr__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__security-section,
  .page-gdpr__faq-section,
  .page-gdpr__contact-section,
  .page-gdpr__cta-section {
    padding: 40px 0;
  }

  .page-gdpr__principles-grid,
  .page-gdpr__rights-list,
  .page-gdpr__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__principle-card,
  .page-gdpr__right-item,
  .page-gdpr__feature-item {
    padding: 20px;
  }

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

  /* Tất cả hình ảnh trong nội dung phải có max-width: 100% */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Tất cả các container chứa hình ảnh/video/nút */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__security-section,
  .page-gdpr__faq-section,
  .page-gdpr__contact-section,
  .page-gdpr__cta-section,
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper,
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Nút */
  .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-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Thêm khoảng cách giữa các nút nếu có nhiều nút */
  }
  
  .page-gdpr__cta-buttons {
    display: flex;
    flex-direction: column; /* Xếp chồng nút theo chiều dọc trên di động */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-section {
    min-height: 400px;
  }
  .page-gdpr__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-gdpr__description {
    font-size: clamp(0.8em, 2.5vw, 1em);
  }
  .page-gdpr__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }
}