/* style/gdpr.css */
/* Body đã có padding-top: var(--header-offset) từ shared.css, không thêm vào đây để tránh trùng lặp */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #26A9E0;
  --button-login: #EA7C07;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Mặc định cho nền trắng */
  background-color: var(--secondary-color); /* Nền trắng mặc định */
}

.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 để tránh trùng lặp với padding-top của body */
  background-color: var(--bg-light);
  min-height: 500px;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 8px;
}

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

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

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.page-gdpr__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-gdpr__container--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-gdpr__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-gdpr__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-gdpr__text-block {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: left;
}

.page-gdpr__list {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 20px;
  text-align: left;
  color: var(--text-dark);
}

.page-gdpr__list-item {
  margin-bottom: 10px;
  font-size: 1em;
}

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

.page-gdpr__image--inline {
  max-width: 800px;
  margin: 30px auto;
}

/* Dark Section Styling */
.page-gdpr__dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__sub-title {
  color: var(--secondary-color);
}

.page-gdpr__dark-section .page-gdpr__text-block,
.page-gdpr__dark-section .page-gdpr__list-item {
  color: var(--text-light);
}

.page-gdpr__dark-section .page-gdpr__link {
  color: var(--secondary-color);
}

/* CTA Buttons */
.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

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

.page-gdpr__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-gdpr__cta-bottom {
  padding-bottom: 80px;
}

.page-gdpr__cta-bottom .page-gdpr__text-block {
  text-align: center;
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 20px;
  background-color: var(--bg-light);
}

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

.page-gdpr__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: var(--secondary-color);
  overflow: hidden;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid transparent;
}

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

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-toggle {
  transform: rotate(45deg);
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-gdpr__faq-answer p {
  margin-bottom: 0;
}

/* Link styles */
.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-gdpr__link:hover {
  text-decoration: none;
}

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

  .page-gdpr__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body đã xử lý header offset */
  }

  .page-gdpr__main-title {
    font-size: 2em; /* Adjusted for smaller screens */
    margin-bottom: 15px;
  }

  .page-gdpr__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

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

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

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

  .page-gdpr__list {
    padding-left: 25px;
  }

  /* Image responsiveness for mobile */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Button responsiveness for mobile */
  .page-gdpr__cta-button,
  .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: 20px !important;
    padding-right: 20px !important;
  }

  .page-gdpr__container--flex {
    flex-direction: column;
    gap: 15px;
  }

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

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