/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333);
  background-color: var(--page-bg, #F5F7FA);
}

.page-privacy-policy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-privacy-policy__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding for mobile, relying on body padding for desktop */
  background-color: #E53935;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-privacy-policy__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
}

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

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

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

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

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

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-privacy-policy__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-privacy-policy__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

.page-privacy-policy__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-privacy-policy__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-privacy-policy__content-section {
  padding: 60px 0;
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-privacy-policy__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-privacy-policy__card {
  background-color: var(--card-bg, #FFFFFF);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: var(--text-main, #333333);
  border: 1px solid var(--border, #E0E0E0);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-privacy-policy__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
}

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

.page-privacy-policy__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

.page-privacy-policy__link {
  color: #E53935;
  text-decoration: underline;
  font-weight: bold;
}

.page-privacy-policy__link:hover {
  color: #FF5A4F;
}

/* Color contrast specific styles */
.page-privacy-policy__light-bg {
  background-color: var(--page-bg, #F5F7FA);
  color: var(--text-main, #333333);
}

.page-privacy-policy__dark-bg {
  background-color: #E53935;
  color: #ffffff;
}

.page-privacy-policy__dark-bg .page-privacy-policy__section-title,
.page-privacy-policy__dark-bg .page-privacy-policy__text-block,
.page-privacy-policy__dark-bg .page-privacy-policy__list-item {
  color: #ffffff;
}

.page-privacy-policy__dark-bg .page-privacy-policy__link {
  color: #FF5A4F;
}

.page-privacy-policy__dark-bg .page-privacy-policy__link:hover {
  color: #ffffff;
}

/* FAQ Section Styles */
.page-privacy-policy__faq-section {
  padding: 60px 0;
}

.page-privacy-policy__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-privacy-policy__faq-item {
  background-color: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border, #E0E0E0);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-privacy-policy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border, #E0E0E0);
  list-style: none; /* For <summary> tag */
}

.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-question {
  background-color: #E53935;
  color: #ffffff;
  border-bottom-color: #E53935;
}

.page-privacy-policy__faq-item[open] > .page-privacy-policy__faq-question .page-privacy-policy__faq-toggle {
  content: '-';
  color: #ffffff;
}

.page-privacy-policy__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E53935;
}

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

.page-privacy-policy__faq-answer {
  padding: 20px 25px;
  font-size: 1.0em;
  color: #555555;
  background-color: var(--card-bg, #FFFFFF);
}

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

/* Hide default details marker */
.page-privacy-policy__faq-item > summary::-webkit-details-marker {
  display: none;
}
.page-privacy-policy__faq-item > summary::marker {
  display: none;
}

/* --- General CSS for modules (from '必写清单') --- */
/* These are included as per strict instruction, even if not directly used on this page */

/* Fixed header and body padding - relying on shared.css for body padding */
/* .page-privacy-policy__hero-section { padding-top: 10px; } (Already defined above) */

/* Home content - generic styling */
.page-privacy-policy__home-content {
  border: 1px solid #FBB00D; /* Example border */
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  box-sizing: border-box;
}

/* Game rows / Sport rows / Coop rows - generic styling */
.page-privacy-policy__row-games,
.page-privacy-policy__row-sport,
.page-privacy-policy__row-coop {
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
  color: #ffffff;
}

.page-privacy-policy__games-title,
.page-privacy-policy__sport-title,
.page-privacy-policy__coop-title {
  color: #fff;
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

/* Slider wrapper for games - generic styling */
.page-privacy-policy__slider-wrapper {
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
}

.page-privacy-policy__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0;
}

.page-privacy-policy__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #2D3748;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: #ffffff;
  text-align: center;
  padding-bottom: 15px;
}

.page-privacy-policy__game-slide img {
  width: 100%;
   /* Example height from HOMEPAGE_ONLY */
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}

/* Banners top wrapper (e.g., gameshow grid) - generic styling */
.page-privacy-policy__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 40px auto;
}

.page-privacy-policy__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Blog masonry/card section - generic styling */
.page-privacy-policy__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 1200px;
  margin: 40px auto;
}

.page-privacy-policy__blog-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-privacy-policy__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-privacy-policy__blog-card img {
  width: 100%;
  height: 200px; /* Example height */
  object-fit: cover;
}

.page-privacy-policy__blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-privacy-policy__blog-card-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333333;
}

.page-privacy-policy__blog-card-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-privacy-policy__btn-outline {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #E53935;
  color: #E53935;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
  margin-top: auto;
}

.page-privacy-policy__btn-outline:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-privacy-policy__blog-slider {
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
}

.page-privacy-policy__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0;
}

.page-privacy-policy__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* (3 * 20px gap) / 3 = 14px */
  max-width: calc(33.333% - 14px);
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  color: var(--text-main, #333333);
}

/* Universal image styles for content area */
.page-privacy-policy img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Universal container styles for content area */
.page-privacy-policy__section,
.page-privacy-policy__card,
.page-privacy-policy__container {
  box-sizing: border-box;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-privacy-policy__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-privacy-policy__hero-section {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
  }

  .page-privacy-policy__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-privacy-policy__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-privacy-policy__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  /* 长文金框区 */
  .page-privacy-policy__home-content {
    height: auto;
    overflow-y: visible;
    padding: 15px;
    margin: 15px auto;
  }

  .page-privacy-policy__home-content h2 {
    font-size: 1.5em;
  }

  /* 游戏轮播 */
  .page-privacy-policy__slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
  }

  .page-privacy-policy__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
    scroll-snap-align: start;
  }

  /* 合作品牌六宫格 */
  .page-privacy-policy__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns for mobile */
    gap: 8px;
    margin: 20px auto;
  }

  .page-privacy-policy__banner-item img {
    
    
  }

  /* 博客卡片区 */
  .page-privacy-policy__blog-masonry {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 15px;
    margin: 20px auto;
  }

  .page-privacy-policy__blog-card img {
    
  }

  .page-privacy-policy__blog-card-title {
    font-size: 1.1em;
  }

  .page-privacy-policy__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
  }

  .page-privacy-policy__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }

  /* 通用图片与容器 */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

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

  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-privacy-policy__text-block {
    font-size: 1em;
  }

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

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