/* Base styles for page-privacy-policy */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Custom background color */
}

.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Hero Section */
.page-privacy-policy__hero-section {
  padding: 40px 0 20px; /* Adjusted padding-top to be small, body handles header offset */
  background: #ffffff;
  text-align: center;
}

.page-privacy-policy__main-title {
  font-size: 36px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__intro-text {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__hero-image {
  width: 100%;
  max-width: 1000px; /* Max width for hero image in content */
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Content Section */
.page-privacy-policy__content-section {
  padding: 40px 0;
  background-color: #F5F7FA; /* Custom background color */
}

.page-privacy-policy__section-title {
  font-size: 28px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 25px;
  text-align: center;
}

.page-privacy-policy__subsection-title {
  font-size: 22px;
  font-weight: 600;
  color: #E53935;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  color: #333333;
}

.page-privacy-policy__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-privacy-policy__list li {
  margin-bottom: 8px;
  color: #333333;
}

.page-privacy-policy__image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin: 25px auto;
  display: block;
}

.page-privacy-policy__contact-buttons {
  text-align: center;
  margin-top: 40px;
}

.page-privacy-policy__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile adaptation */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-privacy-policy__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 40px 0 60px;
  background-color: #ffffff;
}

.page-privacy-policy__faq-list {
  margin-top: 30px;
}

details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Custom border color */
  overflow: hidden;
  background: #ffffff; /* Custom card background */
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__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;
  color: #333333; /* Default text color */
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question::-webkit-details-marker {
  display: none;
}
details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question:hover {
  background: #f5f5f5;
}
.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text color is dark */
}
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Default text color */
}

/* --- Start: Explicitly required homepage game trial CSS snippets --- */
/* These are included as per strict instructions, even if semantically out of place for a privacy policy page. */
@media (max-width: 1023px) {
  .page-privacy-policy__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-privacy-policy__hero-brand,
  .page-privacy-policy__hero-jackpot {
    display: none !important;
  }
  .page-privacy-policy__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-privacy-policy__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-privacy-policy__game-trial-topbar,
  .page-privacy-policy__game-trial-bottombar {
    display: none !important;
  }
  .page-privacy-policy__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-privacy-policy__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-privacy-policy__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-privacy-policy__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-privacy-policy__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-privacy-policy__hero-brand,
  .page-privacy-policy__hero-jackpot,
  .page-privacy-policy__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-privacy-policy__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-privacy-policy__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-privacy-policy__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-privacy-policy__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-privacy-policy__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}
/* --- End: Explicitly required homepage game trial CSS snippets --- */

/* Mobile @media (max-width: 768px)必写清单 */
@media (max-width: 768px) {
  .page-privacy-policy__container {
    padding: 0 15px;
  }

  .page-privacy-policy__main-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .page-privacy-policy__intro-text {
    font-size: 16px;
  }

  .page-privacy-policy__section-title {
    font-size: 24px;
  }

  .page-privacy-policy__subsection-title {
    font-size: 20px;
  }

  .page-privacy-policy p,
  .page-privacy-policy__list li {
    font-size: 15px;
  }

  /* 1. 首屏试玩: 已在 1023px 媒体查询中覆盖，无需重复 */

  /* 2. 优惠 __promo-strip: Placeholder as required by "必写清单" */
  .page-privacy-policy__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-privacy-policy__promo-card {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
  }
  .page-privacy-policy__promo-card-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-privacy-policy__promo-card-title {
    font-size: 16px !important;
  }
  .page-privacy-policy__promo-card-button {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 3. 热门 __hot-games: Placeholder as required by "必写清单" */
  .page-privacy-policy__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-privacy-policy__hot-games-item-name,
  .page-privacy-policy__hot-games-item-rtp,
  .page-privacy-policy__hot-games-item-desc {
    display: none !important;
  }
  .page-privacy-policy__hot-games-item-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-privacy-policy__hot-games-item-text {
    text-align: center !important;
  }

  /* 4. 品牌 __brand-intro (≤768px 显示): Placeholder as required by "必写清单" */
  .page-privacy-policy__brand-intro {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 15px !important;
  }

  /* 5. 中奖条 __winner-ticker: Placeholder as required by "必写清单" */
  .page-privacy-policy__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  body {
    padding-bottom: 50px !important; /* Adjust body padding to accommodate fixed ticker */
  }

  /* 6. 通用图片与容器 */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. 按钮与按钮容器 */
  .page-privacy-policy__cta-button,
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary,
  .page-privacy-policy a[class*="button"],
  .page-privacy-policy 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;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }
  .page-privacy-policy__contact-buttons,
  .page-privacy-policy__button-group,
  .page-privacy-policy__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;
    display: flex;
    flex-direction: column;
  }

  /* 8. 其他模块 (FAQ) */
  details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question { padding: 15px; }
  .page-privacy-policy__faq-qtext { font-size: 15px; }
  details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer { padding: 0 15px 15px; }
}

/* Reward modal styles */
.page-privacy-policy__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-privacy-policy__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-privacy-policy__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color: #333333;
}
.page-privacy-policy__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.page-privacy-policy__reward-modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 15px;
}
.page-privacy-policy__reward-modal-text {
  font-size: 16px;
  margin-bottom: 25px;
}
.page-privacy-policy__reward-modal-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.page-privacy-policy__reward-modal-button:hover {
  opacity: 0.9;
}