/* style/gdpr.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

:root {
  --page-gdpr-primary-color: #26A9E0;
  --page-gdpr-secondary-color: #FFFFFF;
  --page-gdpr-dark-bg: #121212;
  --page-gdpr-light-text: #FFFFFF;
  --page-gdpr-dark-text: #333333;
  --page-gdpr-login-color: #EA7C07;
}

.page-gdpr {
  font-family: 'Arial', sans-serif;
  color: var(--page-gdpr-light-text); /* Mặc định chữ sáng trên nền tối của body */
  line-height: 1.6;
}

.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 double padding với body */
  min-height: 500px;
  overflow: hidden;
  background-color: var(--page-gdpr-dark-bg);
}

.page-gdpr__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-gdpr__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Làm tối hình ảnh để văn bản dễ đọc */
  display: block;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: var(--page-gdpr-light-text);
}

.page-gdpr__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-gdpr-light-text);
}

.page-gdpr__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Cho phép văn bản nút xuống dòng */
  word-wrap: break-word; /* Đảm bảo từ dài không tràn */
  box-sizing: border-box;
}

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

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

.page-gdpr__btn-login {
  background-color: var(--page-gdpr-login-color);
  border-color: var(--page-gdpr-login-color);
}

.page-gdpr__btn-login:hover {
  background-color: #c96506;
  border-color: #c96506;
}

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

.page-gdpr__btn-secondary:hover {
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-light-text);
}

.page-gdpr__content-section,
.page-gdpr__principles-section,
.page-gdpr__rights-section,
.page-gdpr__protection-section,
.page-gdpr__sharing-section,
.page-gdpr__cookies-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__conclusion-section {
  padding: 80px 20px;
  box-sizing: border-box;
}

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

.page-gdpr__dark-bg {
  background-color: #1a1a1a; /* Hơi sáng hơn body để có sự phân biệt */
  color: var(--page-gdpr-light-text);
}

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

.page-gdpr__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.3;
  color: inherit;
}

.page-gdpr__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
  color: inherit;
}

.page-gdpr__text-block a {
  color: var(--page-gdpr-primary-color);
  text-decoration: none;
}

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

.page-gdpr__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gdpr__image-margin-top {
    margin-top: 40px;
}

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

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

.page-gdpr__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-gdpr__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-gdpr-primary-color);
}

.page-gdpr__card-text {
  font-size: 1rem;
  line-height: 1.6;
}

.page-gdpr__rights-list,
.page-gdpr__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-gdpr__rights-list .page-gdpr__list-item {
  background-color: var(--page-gdpr-secondary-color);
  color: var(--page-gdpr-dark-text);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--page-gdpr-primary-color);
}

.page-gdpr__rights-list .page-gdpr__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--page-gdpr-primary-color);
}

.page-gdpr__rights-list .page-gdpr__list-text {
  font-size: 1rem;
  line-height: 1.6;
}

.page-gdpr__contact-list .page-gdpr__list-item {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--page-gdpr-light-text);
}

.page-gdpr__contact-list .page-gdpr__contact-link {
  color: var(--page-gdpr-primary-color);
  text-decoration: none;
}

.page-gdpr__contact-list .page-gdpr__contact-link:hover {
  text-decoration: underline;
}

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

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

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none; /* Ẩn marker mặc định của details */
  color: var(--page-gdpr-primary-color);
}

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

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

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-left: 15px;
  color: var(--page-gdpr-primary-color);
}

.page-gdpr__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-gdpr-dark-text);
}

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

.page-gdpr__cta-buttons--bottom {
  margin-top: 50px;
}

.page-gdpr__btn-start {
  background-color: var(--page-gdpr-login-color);
  border-color: var(--page-gdpr-login-color);
  color: var(--page-gdpr-light-text);
}

.page-gdpr__btn-start:hover {
  background-color: #c96506;
  border-color: #c96506;
}

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

.page-gdpr__btn-support:hover {
  background-color: var(--page-gdpr-primary-color);
  color: var(--page-gdpr-light-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__hero-section {
    padding: 40px 15px;
  }

  .page-gdpr__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-gdpr__subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }

  .page-gdpr__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  .page-gdpr__text-block {
    font-size: 1rem;
  }

  .page-gdpr__card-title {
    font-size: 1.3rem;
  }

  .page-gdpr__rights-list .page-gdpr__list-item {
    padding: 20px;
  }

  .page-gdpr__rights-list .page-gdpr__list-title {
    font-size: 1.2rem;
  }

  .page-gdpr__faq-item summary {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

  .page-gdpr__faq-toggle {
    font-size: 1.3rem;
  }
}

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

  .page-gdpr__hero-section {
    padding: 30px 15px;
    min-height: 400px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-gdpr__subtitle {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }

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

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-gdpr__content-section,
  .page-gdpr__principles-section,
  .page-gdpr__rights-section,
  .page-gdpr__protection-section,
  .page-gdpr__sharing-section,
  .page-gdpr__cookies-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
  .page-gdpr__conclusion-section {
    padding: 40px 15px;
  }

  .page-gdpr__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

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

  .page-gdpr__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__card {
    padding: 25px;
  }

  .page-gdpr__card-title {
    font-size: 1.2rem;
  }

  .page-gdpr__rights-list .page-gdpr__list-item {
    padding: 18px;
  }

  .page-gdpr__rights-list .page-gdpr__list-title {
    font-size: 1.1rem;
  }

  .page-gdpr__faq-item summary {
    font-size: 1rem;
    padding: 15px 18px;
  }

  .page-gdpr__faq-toggle {
    font-size: 1.2rem;
  }

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

  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__hero-section,
  .page-gdpr__cta-buttons,
  .page-gdpr__cta-buttons--bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-gdpr__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-gdpr__hero-content {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-gdpr__hero-section {
    min-height: 350px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-gdpr__subtitle {
    font-size: clamp(0.8rem, 3.5vw, 0.9rem);
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .page-gdpr__card-title {
    font-size: 1.1rem;
  }

  .page-gdpr__faq-item summary {
    font-size: 0.95rem;
  }
}