/* style/gdpr.css */

/* Body background is #000000 (dark), so use light text */
.page-gdpr {
  color: #ffffff; /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles --header-offset, this is for visual spacing */
  background: linear-gradient(135deg, #26A9E0, #000000); /* Blend brand color with dark background */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

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

.page-gdpr__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-gdpr__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 200px; /* Ensure button is not too small */
  box-sizing: border-box;
  max-width: 100%; /* Responsive button */
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-gdpr__btn-secondary {
  background-color: #EA7C07; /* Login/Register color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-gdpr__btn-secondary:hover {
  background-color: #c96606;
  border-color: #c96606;
}

.page-gdpr__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #000000; /* Body background is dark, keep content area dark */
  color: #ffffff; /* Light text for dark background */
  box-sizing: border-box;
}

.page-gdpr__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
  padding-top: 20px;
}

.page-gdpr__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #f0f0f0;
}

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

.page-gdpr__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent light background for cards */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px; /* Ensure cards have some height */
}

.page-gdpr__card-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-gdpr__card-image {
  width: 100%;
  max-width: 400px; /* Adjust max-width for card images */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-gdpr__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

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

.page-gdpr__rights-item,
.page-gdpr__security-item,
.page-gdpr__contact-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  color: #ffffff;
  font-size: 1.05em;
}

.page-gdpr__rights-item strong,
.page-gdpr__security-item strong,
.page-gdpr__contact-item strong {
  color: #26A9E0;
}

.page-gdpr__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-gdpr__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-gdpr__text-link:hover {
  color: #1f8ac9;
}

.page-gdpr__cta-section {
  background: linear-gradient(90deg, #26A9E0, #000000); /* Brand color gradient */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-gdpr__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-gdpr__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-gdpr__faq-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gdpr__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gdpr__faq-item[open] .page-gdpr__faq-question {
  border-bottom: 1px solid #26A9E0;
}

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

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

.page-gdpr__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-gdpr__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

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

.page-gdpr__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gdpr__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

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

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

  .page-gdpr__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-gdpr__hero-content {
    padding: 0 15px;
  }

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

  .page-gdpr__description {
    font-size: 1em !important;
  }

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

  .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__content-area {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__section-title {
    font-size: 1.6em !important;
  }

  .page-gdpr__paragraph {
    font-size: 1em !important;
  }

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

  .page-gdpr__card {
    padding: 20px;
    min-height: auto;
  }

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

  .page-gdpr__card-image {
    max-width: 100%;
    min-height: 200px; /* Ensure images are not too small */
  }

  .page-gdpr__rights-item,
  .page-gdpr__security-item,
  .page-gdpr__contact-item {
    padding: 15px;
    font-size: 0.95em;
  }

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

  .page-gdpr__cta-section {
    padding: 60px 15px;
  }

  .page-gdpr__cta-title {
    font-size: 1.8em !important;
  }

  .page-gdpr__cta-description {
    font-size: 1.1em !important;
  }

  .page-gdpr__faq-section {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-gdpr__faq-question {
    font-size: 1.1em !important;
    padding: 15px;
  }

  .page-gdpr__faq-answer {
    padding: 15px;
    font-size: 1em !important;
  }

  /* Ensure all images are responsive */
  .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; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }
}

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

  .page-gdpr__section-title {
    font-size: 1.4em !important;
  }

  .page-gdpr__cta-title {
    font-size: 1.6em !important;
  }
}