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

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #1a1a1a;
  --button-login-color: #EA7C07;
}

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light); /* Đảm bảo màu nền tương phản */
}

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Nhỏ hơn so với --header-offset để tránh khoảng trắng kép */
  padding-bottom: 60px;
  text-align: center;
  color: var(--text-color-light);
  background-color: var(--primary-color);
  overflow: hidden;
}

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

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

.page-gdpr__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-gdpr__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-gdpr__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-gdpr__btn-primary {
  background-color: var(--button-login-color);
  color: var(--text-color-light);
  border: 2px solid var(--button-login-color);
}

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

.page-gdpr__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.page-gdpr__section-title {
  color: var(--primary-color);
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-gdpr p {
  margin-bottom: 15px;
  color: var(--text-color-dark);
}

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

.page-gdpr__list-item {
  margin-bottom: 10px;
  color: var(--text-color-dark);
}

.page-gdpr__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

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

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #e0e0e0;
  color: var(--primary-color);
  list-style: none;
  text-decoration: none;
}

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

.page-gdpr__faq-item[open] > .page-gdpr__faq-question {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border-bottom: 1px solid var(--primary-color);
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: inherit;
}

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

.page-gdpr__faq-answer {
  padding: 20px 25px;
  color: var(--text-color-dark);
  background-color: var(--background-light);
}

.page-gdpr__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-content {
    max-width: 768px;
  }

  .page-gdpr__content-area {
    padding: 40px 20px;
  }
}

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

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

  .page-gdpr__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-gdpr__cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }

  .page-gdpr__content-area {
    padding: 30px 15px;
    margin-top: -20px;
  }

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

  .page-gdpr__list {
    margin-left: 15px;
  }

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

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

  /* Force responsive for images */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-gdpr__hero-image-wrapper,
  .page-gdpr__content-area,
  .page-gdpr__faq-item,
  .page-gdpr__cta-button,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__cta-button {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .page-gdpr__main-title {
    font-size: 1.5em;
  }

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

  .page-gdpr__cta-button {
    width: 100%;
    padding: 12px 15px;
  }
}