/* style/gdpr.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho body hoặc các phần tử đầu tiên của main để tránh đệm kép. */

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

.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Body background is light, so use dark text */
  background-color: var(--background-color);
}

.page-gdpr__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px 20px; /* Small top padding, more bottom padding for content */
  text-align: center;
  overflow: hidden;
  background-color: var(--background-color);
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

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

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

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-gdpr__btn-primary {
  background-color: var(--login-button-color); /* Sử dụng màu đăng nhập */
  color: var(--text-color-light);
  border: 2px solid var(--login-button-color);
}

.page-gdpr__btn-primary:hover {
  background-color: darken(var(--login-button-color), 10%);
  border-color: darken(var(--login-button-color), 10%);
}

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

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

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

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

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

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

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

.page-gdpr__text-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-gdpr__text-link:hover {
  color: darken(var(--primary-color), 10%);
}

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

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__sub-title,
.page-gdpr__dark-section .page-gdpr__text-block {
  color: var(--text-color-light);
}

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

.page-gdpr__dark-section .page-gdpr__text-link:hover {
  color: lighten(var(--secondary-color), 10%);
}

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

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

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

.page-gdpr__image-container {
  margin: 30px 0;
  text-align: center;
}

.page-gdpr__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-gdpr__faq {
  background-color: #f8f8f8;
}

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

.page-gdpr__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px 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: 600;
  color: var(--primary-color);
  cursor: pointer;
  position: relative;
  list-style: none; /* For <summary> tag */
}

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

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.05em;
  color: var(--text-color-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-gdpr__faq-item[open] .page-gdpr__faq-answer {
  max-height: 1000px; /* Sufficiently large to show content */
  padding-top: 10px;
}

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

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

.page-gdpr__contact-item strong {
  color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-gdpr__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

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

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

  .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 15px;
    text-align: center;
    font-size: 1em;
  }

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

  .page-gdpr__container {
    padding-left: 0;
    padding-right: 0;
  }

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

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

  .page-gdpr__text-block,
  .page-gdpr__list-item,
  .page-gdpr__faq-question,
  .page-gdpr__faq-answer,
  .page-gdpr__contact-item {
    font-size: 1em;
  }

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

  /* Mobile container responsiveness */
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-gdpr__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
    overflow: hidden !important;
  }
  .page-gdpr__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ specific mobile styles */
  .page-gdpr__faq-question {
    padding: 15px;
  }

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