/* style/gdpr.css */

/* Biến màu */
: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 from shared.css */
  --page-gdpr-button-login: #EA7C07;
}

.page-gdpr {
  color: var(--page-gdpr-text-light); /* Default text color for dark body background */
  background-color: var(--page-gdpr-bg-dark);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  background-color: var(--page-gdpr-primary-color);
}

.page-gdpr__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-gdpr__hero-section .page-gdpr__container {
  position: relative;
  z-index: 1;
  color: var(--page-gdpr-text-light);
}

.page-gdpr__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-gdpr-secondary-color);
  line-height: 1.2;
}

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

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
}

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

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

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

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

.page-gdpr__content-section {
  padding: 60px 0;
}

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

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

.page-gdpr__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from section background */
}

.page-gdpr__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

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

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

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

.page-gdpr__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-gdpr__card {
  background-color: var(--page-gdpr-secondary-color);
  color: var(--page-gdpr-text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-gdpr__card:hover {
  transform: translateY(-5px);
}

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

.page-gdpr__card-text {
  font-size: 1em;
}

.page-gdpr__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

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

.page-gdpr__faq-item {
  background-color: var(--page-gdpr-secondary-color);
  color: var(--page-gdpr-text-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-gdpr-secondary-color);
  color: var(--page-gdpr-text-dark);
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-gdpr-primary-color);
}

.page-gdpr__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: var(--page-gdpr-text-dark);
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  border-top: 1px solid #e0e0e0;
}

.page-gdpr__contact-section {
  padding: 80px 0;
  text-align: center;
}

.page-gdpr__contact-link {
  color: var(--page-gdpr-secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-gdpr__contact-link:hover {
  color: #f0f0f0;
}

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

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

  .page-gdpr__hero-section {
    min-height: 400px;
    padding: 60px 0;
  }

  .page-gdpr__main-title {
    font-size: 2.2em;
  }

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

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

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

  .page-gdpr__content-image,
  .page-gdpr__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-gdpr__card {
    padding: 20px;
  }

  .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: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

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

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

  /* Ensure content sections and cards adapt */
  .page-gdpr__content-section,
  .page-gdpr__dark-section,
  .page-gdpr__light-bg,
  .page-gdpr__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* CSS for content area images to ensure they are not smaller than 200px */
.page-gdpr__content-section img {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-gdpr img {
  filter: none !important;
}