/* style/gdpr.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Văn bản sáng cho nền body tối */
  background-color: transparent; /* Dựa vào nền body từ shared.css */
}

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Đảm bảo hình ảnh ở trên, văn bản ở dưới */
  align-items: center;
  padding: 10px 0 60px 0; /* Khoảng đệm trên nhỏ, khoảng đệm dưới lớn hơn để phân tách */
  background-color: #0a0a0a; /* Đảm bảo nền hero khớp với nền body hoặc rất tối */
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-gdpr__hero-content {
  max-width: 900px;
  margin-top: 40px;
  text-align: center;
  padding: 0 20px;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Kích thước font phản hồi */
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-gdpr__description {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 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;
  box-sizing: border-box; /* Quan trọng cho khả năng phản hồi của nút */
  max-width: 100%; /* Đảm bảo các nút không bị tràn */
  white-space: normal; /* Cho phép xuống dòng văn bản */
  word-wrap: break-word; /* Cho phép xuống dòng văn bản */
  text-align: center;
}

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

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

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

.page-gdpr__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-gdpr__section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Nền tối hơi sáng hơn cho các phần */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__section:last-of-type {
  border-bottom: none;
}

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

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

.page-gdpr__sub-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-gdpr p {
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-gdpr a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-gdpr__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Kích thước tối thiểu cho hình ảnh nội dung */
  min-height: 200px; /* Kích thước tối thiểu cho hình ảnh nội dung */
}

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

.page-gdpr__list-item {
  margin-bottom: 10px;
}

/* Phần FAQ */
.page-gdpr__faq-section {
  background-color: #0a0a0a;
  padding-bottom: 80px;
}

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

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 1.1em;
  background-color: #262626;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
  list-style: none; /* Cho details/summary */
}

.page-gdpr__faq-question::-webkit-details-marker { /* Cho details/summary */
  display: none;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  background-color: #26A9E0;
  border-bottom-color: #26A9E0;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question .page-gdpr__faq-toggle {
  color: #FFFFFF;
}

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

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

.page-gdpr__faq-answer {
  padding: 20px;
  color: #e0e0e0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #1a1a1a;
}

/* Kiểu phản hồi */
@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-gdpr__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-gdpr__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Điều chỉnh cho màn hình nhỏ hơn */
  }

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

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    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; /* Khoảng cách giữa các nút được xếp chồng */
  }

  .page-gdpr__hero-content .page-gdpr__btn-primary {
    display: block; /* Xếp chồng các nút trong hero */
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

  .page-gdpr__sub-title {
    font-size: 1.5em;
  }

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

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

  .page-gdpr__faq-answer {
    padding: 15px;
  }

  /* Đảm bảo tất cả các vùng chứa hình ảnh phản hồi */
  .page-gdpr__image-wrapper,
  .page-gdpr__card,
  .page-gdpr__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Đối với các phần video, nếu có */
  .page-gdpr__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-gdpr__video-container,
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-gdpr video,
  .page-gdpr__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Nếu nhiều nút nằm trong một vùng chứa flex, đảm bảo chúng xuống dòng hoặc xếp chồng */
  .page-gdpr__hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}