/* style/gdpr.css */
/* body đã có padding-top: var(--header-offset); nên các section đầu tiên của trang chỉ cần padding-top nhỏ */
.page-gdpr {
  color: var(--text-main);
  background-color: var(--background-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--card-bg);
}

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

.page-gdpr__hero-content {
  max-width: 900px;
  text-align: center;
  color: var(--text-main);
  z-index: 1;
  padding: 0 20px;
}

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-gdpr__subtitle {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-gdpr__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gdpr__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-gdpr__section {
  padding: 60px 20px;
  background-color: var(--background-color);
  color: var(--text-main);
}

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

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

.page-gdpr__paragraph {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.1em;
}

.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-gdpr__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  color: var(--text-main);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-gdpr__list-item::before {
  content: '✓';
  color: var(--glow);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-gdpr__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-gdpr__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-gdpr__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

.page-gdpr__btn-secondary:hover {
  background: var(--glow);
  color: var(--background-color);
  border-color: var(--glow);
}

/* 智能文字颜色选择器 - Đảm bảo độ tương phản */
.page-gdpr__card,
.page-gdpr__section,
.page-gdpr__box {
  color: var(--text-main); /* Mặc định chữ sáng trên nền tối */
}

.page-gdpr__dark-bg {
  color: #ffffff; /* Nền tối phối chữ sáng */
  background: var(--deep-green);
}

.page-gdpr__light-bg {
  color: #333333; /* Nền sáng phối chữ tối */
  background: #ffffff;
}

/* Đảm bảo độ tương phản cho các khu vực chính */
.page-gdpr__content-area,
.page-gdpr__text-block {
  color: var(--text-main);
  background-color: var(--background-color);
}

.page-gdpr p,
.page-gdpr li {
  color: var(--text-secondary);
}

.page-gdpr__card {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--border);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-gdpr__hero-image {
    max-width: 90%;
  }
  .page-gdpr__image-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding: 10px 15px 40px;
  }

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

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

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

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

  .page-gdpr__paragraph,
  .page-gdpr__list-item {
    font-size: 0.95em;
  }

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

  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__data-collection-section,
  .page-gdpr__legal-basis-section,
  .page-gdpr__user-rights-section,
  .page-gdpr__data-security-section,
  .page-gdpr__data-sharing-section,
  .page-gdpr__data-retention-section,
  .page-gdpr__contact-section,
  .page-gdpr__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ngăn chặn tràn nội dung */
  }

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

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

  .page-gdpr__video-section,
  .page-gdpr__video-container,
  .page-gdpr__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__video-section {
    padding-top: 10px !important;
  }

  .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;
    padding-right: 15px;
  }

  .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;
    flex-direction: column !important;
    gap: 10px;
  }
}

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

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

  .page-gdpr__cta-button {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}