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

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  --text-light: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f8f9fa;
  --login-button-color: #EA7C07;
}

.page-gdpr {
  color: var(--text-dark); /* Default text color for the page content */
  background-color: var(--bg-dark); /* Ensures consistency with body background */
}

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  overflow: hidden;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.page-gdpr__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-gdpr__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
  /* No fixed large font-size; use clamp if absolutely necessary */
}

.page-gdpr__hero-description {
  font-size: 1.15em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-gdpr__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-gdpr__btn-primary {
  background-color: var(--login-button-color); /* Use specific login color */
  color: var(--secondary-color);
  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%);
  transform: translateY(-2px);
}

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

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

.page-gdpr__section {
  padding: 50px 20px;
  width: 100%;
  box-sizing: border-box;
}

.page-gdpr__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px; /* Add internal padding for content */
  box-sizing: border-box;
}

.page-gdpr__introduction,
.page-gdpr__data-collection,
.page-gdpr__data-retention,
.page-gdpr__policy-update {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.page-gdpr__data-rights,
.page-gdpr__data-sharing,
.page-gdpr__faq {
  background-color: var(--bg-light);
  color: var(--text-light);
}

.page-gdpr__data-security,
.page-gdpr__contact {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

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

.page-gdpr__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-gdpr__image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Ensure images don't stretch too wide on desktop */
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-gdpr__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-gdpr__list-item {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 10px;
  color: inherit; /* Inherit color from parent section */
}

.page-gdpr__list-item strong {
  color: inherit;
}

.page-gdpr__link {
  color: var(--secondary-color); /* For dark bg sections */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: var(--secondary-color);
}

/* Adjust link color for light background sections */
.page-gdpr__light-bg .page-gdpr__link {
  color: var(--primary-color);
}

.page-gdpr__light-bg .page-gdpr__link:hover {
  color: darken(var(--primary-color), 10%);
}

/* FAQ Section Styling */
.page-gdpr__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-gdpr__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--text-light);
  background-color: var(--secondary-color);
  list-style: none; /* Hide default marker */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Disable text selection */
}

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

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

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

.page-gdpr__faq-answer {
  padding: 15px 25px 20px;
  background-color: #f9f9f9;
  color: var(--text-light);
  font-size: 1em;
  line-height: 1.6;
}

.page-gdpr__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-light);
}

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

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

  .page-gdpr__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Adaptive font size */
  }

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

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

  .page-gdpr__text-block,
  .page-gdpr__list-item,
  .page-gdpr__faq-item summary {
    font-size: 0.95em;
  }
}

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

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

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

  .page-gdpr__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    width: 100% !important;
    max-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__section {
    padding: 30px 0;
  }

  .page-gdpr__container {
    padding: 0 15px;
  }

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

  .page-gdpr__text-block,
  .page-gdpr__list-item,
  .page-gdpr__faq-answer {
    font-size: 0.9em;
    line-height: 1.5;
  }

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

  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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