/* Boilerplate for homepage trial CSS - MANDATORY as per instructions */
@media (max-width: 1023px) {
  .page-gdpr__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-gdpr__hero-brand,
  .page-gdpr__hero-jackpot {
    display: none !important;
  }
  .page-gdpr__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial-topbar,
  .page-gdpr__game-trial-bottombar {
    display: none !important;
  }
  .page-gdpr__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-gdpr__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-gdpr__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-gdpr__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-gdpr__hero-brand,
  .page-gdpr__hero-jackpot,
  .page-gdpr__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-gdpr__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-gdpr__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-gdpr__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-gdpr__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Mandatory @media (max-width: 768px) blocks for homepage elements - even if not used on this page */
@media (max-width: 768px) {
  /* 1. 首屏试玩 (covered by 1023px block above, no need to repeat specific trial styles here) */
  /* However, if there were general hero layout changes specific to 768px, they would go here. */
  /* General content area padding for mobile */
  .page-gdpr__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 2. 优惠 __promo-strip (placeholder, not used on this page but structure required) */
  .page-gdpr__promo-strip {
    padding: 20px 0;
  }
  .page-gdpr__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* Example: 2 columns on mobile */
    gap: 15px;
    overflow-x: hidden;
  }
  .page-gdpr__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-gdpr__promo-card-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__promo-card-title {
    font-size: 16px;
    margin-top: 10px;
  }
  .page-gdpr__promo-card-description {
    font-size: 14px;
  }

  /* 3. 热门 __hot-games (placeholder, not used on this page but structure required) */
  .page-gdpr__hot-games {
    padding: 20px 0;
  }
  .page-gdpr__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    gap: 15px;
  }
  .page-gdpr__hot-games-item {
    text-align: center;
  }
  .page-gdpr__hot-games-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__hot-games-name,
  .page-gdpr__hot-games-rtp,
  .page-gdpr__hot-games-desc {
    display: none !important; /* Hide on mobile as per instruction */
  }

  /* 4. 品牌 __brand-intro (placeholder, not used on this page but structure required) */
  .page-gdpr__brand-intro {
    padding: 20px 0;
  }
  .page-gdpr__brand-intro-content {
    text-align: center;
  }

  /* 5. 中奖条 __winner-ticker (placeholder, not used on this page but structure required) */
  .page-gdpr__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 9999;
  }
  body.page-gdpr--has-ticker {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }

  /* 6. 通用图片与容器 */
  .page-gdpr img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gdpr__hero-image-wrapper,
  .page-gdpr__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 7. 按钮与按钮容器 */
  .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;
  }
  .page-gdpr__cta-buttons {
    flex-direction: column; /* Mobile vertical stacking */
  }

  /* 8. Other modules (GDPR specific) 768px rules */
  .page-gdpr__main-title {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.3;
  }
  .page-gdpr__intro-text {
    font-size: 15px;
  }
  .page-gdpr__section-title {
    font-size: clamp(20px, 5vw, 30px);
    line-height: 1.4;
  }
  .page-gdpr__paragraph, .page-gdpr__list li {
    font-size: 15px;
    line-height: 1.6;
  }
  .page-gdpr__rights-grid {
    grid-template-columns: 1fr;
  }
  details.page-gdpr__faq-item summary.page-gdpr__faq-question { padding: 15px; }
  .page-gdpr__faq-qtext { font-size: 15px; }
  .page-gdpr__faq-toggle {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-gdpr__faq-item .page-gdpr__faq-answer { padding: 0 15px 15px; }
}

/* GDPR Page Specific Styles */
.page-gdpr {
  color: #333333; /* Default dark text for light body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-gdpr__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  background: #f8f8f8;
}

.page-gdpr__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-gdpr__hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px 40px;
  text-align: center;
}

.page-gdpr__main-title {
  font-size: clamp(32px, 4.5vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-gdpr__intro-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-gdpr__btn-primary,
.page-gdpr__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-gdpr__btn-primary {
  background: #26A9E0;
  color: #ffffff;
}

.page-gdpr__btn-primary:hover {
  background: #1e87c0;
}

.page-gdpr__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-gdpr__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-gdpr__content-section {
  padding: 50px 0;
}

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

.page-gdpr__dark-section .page-gdpr__section-title,
.page-gdpr__dark-section .page-gdpr__paragraph,
.page-gdpr__dark-section .page-gdpr__list li,
.page-gdpr__dark-section .page-gdpr__right-title,
.page-gdpr__dark-section .page-gdpr__right-description,
.page-gdpr__dark-section .page-gdpr__contact-list li,
.page-gdpr__dark-section .page-gdpr__contact-list li a {
  color: #ffffff;
}

.page-gdpr__dark-section .page-gdpr__btn-primary {
  background: #ffffff;
  color: #26A9E0;
}

.page-gdpr__dark-section .page-gdpr__btn-primary:hover {
  background: #f0f0f0;
}

.page-gdpr__container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-gdpr__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
}

.page-gdpr__paragraph {
  margin-bottom: 20px;
  text-align: justify;
}

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

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

.page-gdpr__list li {
  margin-bottom: 10px;
}

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

.page-gdpr__right-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.page-gdpr__dark-section .page-gdpr__right-card {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.page-gdpr__right-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-gdpr__right-description {
  font-size: 15px;
  color: #ffffff;
}

.page-gdpr__contact-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: center;
}

.page-gdpr__contact-list li {
  font-size: 18px;
  margin-bottom: 10px;
}

.page-gdpr__contact-list li a {
  color: #ffffff;
  text-decoration: underline;
}

.page-gdpr__contact-list li a:hover {
  color: #f0f0f0;
}

/* FAQ Styles */
details.page-gdpr__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question::-webkit-details-marker {
  display: none;
}
details.page-gdpr__faq-item summary.page-gdpr__faq-question:hover {
  background: #f5f5f5;
}
.page-gdpr__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-gdpr__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-gdpr__faq-item .page-gdpr__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-gdpr__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-gdpr__cta-content {
  max-width: 900px;
}

.page-gdpr__cta-title {
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-gdpr__cta-text {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-gdpr__btn-large {
  padding: 15px 35px;
  font-size: 18px;
  border-radius: 10px;
}

/* Global image and button responsive styles */
.page-gdpr img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-gdpr__section,
.page-gdpr__card,
.page-gdpr__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-gdpr__cta-buttons,
.page-gdpr__button-group,
.page-gdpr__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure contrast fix is available if needed */
.page-gdpr__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}
.page-gdpr__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}