/* General styling for the GDPR page */
.page-gdpr {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #ffffff; /* Assuming body background is light */
}

.page-gdpr__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

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

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

.page-gdpr__description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-gdpr__hero-image {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
}

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

.page-gdpr__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gdpr__btn-primary:hover {
  background-color: #a00606;
}

.page-gdpr__content-section {
  padding: 60px 20px;
  margin: 0 auto;
}

.page-gdpr__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-gdpr__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-gdpr__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

.page-gdpr__rights-list {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 30px;
}

.page-gdpr__rights-item {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

.page-gdpr__implementation-item.page-gdpr__card {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-gdpr__item-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-gdpr__card-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 20px auto 10px auto;
  border-radius: 6px;
}

/* FAQ Section */
.page-gdpr__faq-section {
  padding: 60px 20px;
  margin: 0 auto;
}

.page-gdpr__faq-list {
  max-width: 900px;
  margin: 30px auto 0 auto;
}

.page-gdpr__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none; /* Remove default marker for summary */
}

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

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

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

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

.page-gdpr__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: #555555;
  line-height: 1.7;
}

/* CTA Section */
.page-gdpr__cta-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-gdpr__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-gdpr__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gdpr__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

.page-gdpr__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-gdpr__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #017439;
}

/* --- Required Homepage CSS Selectors (with minimal styling for compliance) --- */
/* These selectors are included as per strict output format, even if not directly used by GDPR page HTML */

.page-gdpr__home-content {
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: 650px;
  overflow-y: auto;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__row-games,
.page-gdpr__row-sport,
.page-gdpr__row-coop {
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__games-title,
.page-gdpr__sport-title,
.page-gdpr__coop-title {
  color: #fff;
  text-align: center;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__slider-wrapper {
  overflow: hidden;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__btn-outline {
  margin-top: auto;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  display: none; /* Hide if not used on this page */
}

.page-gdpr__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  display: none; /* Hide if not used on this page */
}

/* --- Responsive styles for mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-gdpr {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-gdpr__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-gdpr__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 通用内容区和图片 */
  .page-gdpr__content-section {
    padding: 40px 15px;
  }

  .page-gdpr__container {
    padding: 0; /* Remove horizontal padding as section has it */
  }

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

  .page-gdpr__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-gdpr__rights-list {
    padding-left: 25px;
  }

  .page-gdpr__rights-item {
    font-size: 1em;
  }

  /* 卡片布局图片要求 */
  .page-gdpr__implementation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-gdpr__implementation-item.page-gdpr__card {
    padding: 20px;
  }

  .page-gdpr__item-title {
    font-size: 1.3em;
  }

  .page-gdpr__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section */
  .page-gdpr__faq-section {
    padding: 40px 15px;
  }

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

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

  /* CTA Section */
  .page-gdpr__cta-section {
    padding: 50px 15px;
  }

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

  .page-gdpr__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  /* 按钮与按钮容器 */
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px; /* Add padding to container */
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .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; /* Ensure text padding within button */
    padding-right: 15px;
  }

  /* --- Required Homepage CSS Selectors for mobile --- */
  /* These selectors are included as per strict output format, even if not directly used by GDPR page HTML */
  .page-gdpr__home-content {
    height: auto; /* Adapt height for mobile */
    overflow-y: visible;
  }

  .page-gdpr__row-games,
  .page-gdpr__row-sport,
  .page-gdpr__row-coop {
    padding: 20px 10px;
  }

  .page-gdpr__slider-track {
    display: flex; /* Ensure flex for horizontal scroll */
    flex-wrap: nowrap;
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .page-gdpr__game-slide {
    flex: 0 0 160px; /* Smaller fixed width for mobile game slides */
    max-width: 160px;
    scroll-snap-align: start;
  }

  .page-gdpr__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns for mobile */
    gap: 8px;
  }

  .page-gdpr__banner-item img {
    max-width: 100% !important; /* Ensure images fit within their grid cells */
    
  }

  .page-gdpr__blog-masonry {
    grid-template-columns: 1fr; /* Single column for mobile blog masonry */
    gap: 15px;
  }

  .page-gdpr__blog-slider-track {
    display: flex; /* Ensure flex for horizontal scroll */
    flex-wrap: nowrap;
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .page-gdpr__blog-slide {
    flex: 0 0 100%; /* Full width for mobile blog slides */
    max-width: 100%;
    scroll-snap-align: start;
  }

  /* General image and container responsiveness */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-gdpr__section,
  .page-gdpr__card,
  .page-gdpr__container,
  .page-gdpr__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}