/* style/gdpr.css */

/* Custom Colors */
:root {
  --page-gdpr-bg: #08160F;
  --page-gdpr-card-bg: #11271B;
  --page-gdpr-text-main: #F2FFF6;
  --page-gdpr-text-secondary: #A7D9B8;
  --page-gdpr-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-gdpr-border: #2E7A4E;
  --page-gdpr-glow: #57E38D;
  --page-gdpr-gold: #F2C14E;
  --page-gdpr-divider: #1E3A2A;
  --page-gdpr-deep-green: #0A4B2C;
}

/* Base styles for the GDPR page */
.page-gdpr {
  background-color: var(--page-gdpr-bg); /* Dark background */
  color: var(--page-gdpr-text-main); /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-gdpr__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-gdpr-deep-green); /* A deeper green for the hero section background */
}

.page-gdpr__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Max height for desktop hero image */
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gdpr__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-gdpr__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--page-gdpr-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-gdpr__description {
  font-size: 1.15rem;
  color: var(--page-gdpr-text-secondary);
  margin-bottom: 30px;
}

.page-gdpr__btn-primary {
  display: inline-block;
  background: var(--page-gdpr-btn-gradient);
  color: #ffffff; /* White text for contrast on green gradient */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-gdpr__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section General Styles */
.page-gdpr__intro-section,
.page-gdpr__data-collection-section,
.page-gdpr__user-rights-section,
.page-gdpr__security-section,
.page-gdpr__retention-section,
.page-gdpr__contact-section,
.page-gdpr__faq-section,
.page-gdpr__cta-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--page-gdpr-divider);
}

.page-gdpr__intro-section {
  background-color: var(--page-gdpr-card-bg); /* Darker green for contrast */
}

.page-gdpr__dark-section {
  background-color: var(--page-gdpr-card-bg);
  color: var(--page-gdpr-text-main);
}

.page-gdpr__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--page-gdpr-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-gdpr__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-gdpr-glow);
  border-radius: 2px;
}

.page-gdpr__text-block {
  font-size: 1.05rem;
  color: var(--page-gdpr-text-secondary);
  margin-bottom: 25px;
  text-align: justify;
}

.page-gdpr__image-content {
  width: 100%;
  height: auto;
  max-width: 800px; /* Max width for content images */
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Lists */
.page-gdpr__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-gdpr__list-item {
  background-color: var(--page-gdpr-deep-green); /* Deeper green for list items */
  border: 1px solid var(--page-gdpr-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--page-gdpr-text-main);
  font-size: 1.05rem;
}

.page-gdpr__list-item strong {
  color: var(--page-gdpr-glow);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 10px;
}

.page-gdpr__list-description {
  color: var(--page-gdpr-text-secondary);
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Contact Section */
.page-gdpr__contact-info {
  background-color: var(--page-gdpr-card-bg);
  border: 1px solid var(--page-gdpr-border);
  border-radius: 8px;
  padding: 30px;
  margin: 30px auto;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gdpr__contact-item {
  font-size: 1.1rem;
  color: var(--page-gdpr-text-main);
  margin-bottom: 15px;
}

.page-gdpr__link {
  color: var(--page-gdpr-glow);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gdpr__link:hover {
  color: var(--page-gdpr-gold);
  text-decoration: underline;
}

.page-gdpr__btn-center {
  display: block;
  margin: 30px auto 0;
  max-width: 300px;
  text-align: center;
}

/* FAQ Section */
.page-gdpr__faq-list {
  margin-top: 30px;
}

.page-gdpr__faq-item {
  background-color: var(--page-gdpr-deep-green);
  border: 1px solid var(--page-gdpr-border);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--page-gdpr-text-main);
  overflow: hidden; /* For smooth transition on details open */
}

.page-gdpr__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-gdpr-deep-green);
  color: var(--page-gdpr-text-main);
  transition: background-color 0.3s ease;
}

.page-gdpr__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-gdpr__faq-item summary:hover {
  background-color: var(--page-gdpr-deep-green);
  filter: brightness(1.2);
}

.page-gdpr__faq-qtext {
  flex-grow: 1;
  color: var(--page-gdpr-text-main);
}

.page-gdpr__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-gdpr-glow);
}

.page-gdpr__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--page-gdpr-text-secondary);
}

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

/* Secondary Button */
.page-gdpr__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--page-gdpr-glow);
  border: 2px solid var(--page-gdpr-glow);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.page-gdpr__btn-secondary:hover {
  background-color: var(--page-gdpr-glow);
  color: var(--page-gdpr-card-bg); /* Dark text on light green hover */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-gdpr__cta-section {
  text-align: center;
  background-color: var(--page-gdpr-bg);
  padding: 60px 0;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

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

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

  .page-gdpr__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

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

  .page-gdpr__hero-image {
    max-height: 400px;
    margin-bottom: 20px;
  }

  .page-gdpr__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-gdpr__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-gdpr__btn-primary,
  .page-gdpr__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-gdpr__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-gdpr__intro-section,
  .page-gdpr__data-collection-section,
  .page-gdpr__user-rights-section,
  .page-gdpr__security-section,
  .page-gdpr__retention-section,
  .page-gdpr__contact-section,
  .page-gdpr__faq-section,
.page-gdpr__cta-section {
    padding: 50px 0;
  }

  .page-gdpr__image-content {
    margin: 30px auto;
  }

  .page-gdpr__list-item {
    padding: 15px;
    font-size: 1rem;
  }

  .page-gdpr__list-item strong {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .page-gdpr__contact-info {
    padding: 20px;
    margin: 20px auto;
  }

  .page-gdpr__contact-item {
    font-size: 1rem;
    margin-bottom: 10px;
  }

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

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

  .page-gdpr__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }

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

  .page-gdpr__cta-buttons .page-gdpr__btn-primary,
  .page-gdpr__cta-buttons .page-gdpr__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width even if column flex */
    margin: 0 auto;
  }

  /* Mobile responsive for images, videos, buttons */
  .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__cta-buttons,
  .page-gdpr__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-gdpr__video-section {
    padding-top: 10px !important; /* body đã đảm nhiệm --header-offset, tại đây cấm sử dụng var(--header-offset) */
  }

  /* Buttons mobile adaptation */
  .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__cta-buttons,
  .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-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }
}