/* --- Base Styles --- */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #F4F7FB); /* Using shared body background */
}

.page-terms-conditions__hero-section {
  position: relative;
  padding-top: 10px; /* Assuming shared.css handles body padding-top */
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  max-height: 400px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-terms-conditions__btn-secondary:hover {
  background: #f0f0f0;
}

.page-terms-conditions__content-section {
  padding: 50px 0;
  background-color: #F4F7FB; /* Background for content area */
  color: #1F2D3D; /* Text color for content area */
}

.page-terms-conditions__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-terms-conditions__heading-secondary {
  font-size: 2.2em;
  color: #2F6BFF;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #D6E2FF;
  padding-bottom: 10px;
}

.page-terms-conditions__heading-tertiary {
  font-size: 1.6em;
  color: #1F2D3D;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1.05em;
  color: #333333;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #333333;
}

.page-terms-conditions__list-item {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- General Image & Button Responsive Styles (Mandatory) --- */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-terms-conditions__cta-button,
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary,
.page-terms-conditions a[class*="button"],
.page-terms-conditions a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-buttons,
.page-terms-conditions__button-group,
.page-terms-conditions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Placeholder/Minimal CSS for Mandatory Mobile Rules (as per prompt) --- */
/* These modules are not strictly present on a TOS page but are required in CSS output */
.page-terms-conditions__home-content {
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  padding: 20px;
  background-color: #ffffff;
  margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: auto; /* No fixed height for terms page */
  overflow-y: visible; /* No scrollbar for terms page */
}

.page-terms-conditions__row-games,
.page-terms-conditions__row-sport,
.page-terms-conditions__row-coop {
  background-color: #F4F7FB; /* Adjusted for light background theme */
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}

.page-terms-conditions__games-title,
.page-terms-conditions__sport-title,
.page-terms-conditions__coop-title {
  color: #1F2D3D; /* Adjusted for light background theme */
  text-align: center;
  margin-bottom: 30px;
}

.page-terms-conditions__slider-wrapper {
  overflow: hidden;
  padding: 20px 0;
}

.page-terms-conditions__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.5s ease-in-out;
}

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

.page-terms-conditions__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 40px auto;
  align-items: center;
}

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

.page-terms-conditions__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
}

.page-terms-conditions__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-terms-conditions__blog-card-link:hover {
  transform: translateY(-5px);
}

.page-terms-conditions__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #2F6BFF;
  color: #2F6BFF;
  background-color: transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-terms-conditions__btn-outline:hover {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-terms-conditions__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.page-terms-conditions__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* For 3 items with gap */
  max-width: calc(33.333% - 14px);
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

  /* 1. HERO 主图区域 */
  .page-terms-conditions__hero-section {
    padding-top: 10px; /* Reduced for mobile */
    padding-bottom: 20px;
  }

  .page-terms-conditions__hero-image-wrapper {
    max-height: 250px;
  }

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

  .page-terms-conditions__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__container {
    padding: 0 15px;
  }

  .page-terms-conditions__heading-secondary {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__heading-tertiary {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* 2. 长文金框区 (using .page-terms-conditions__home-content as a general content block) */
  .page-terms-conditions__home-content {
    padding: 15px;
    height: auto; /* Ensure it adapts to content */
    overflow-y: visible;
  }

  .page-terms-conditions__home-content h2 {
    font-size: 1.5em; /* Example font size for mobile */
  }

  /* 3. 游戏轮播 */
  .page-terms-conditions__slider-track {
    display: flex;
    flex-wrap: nowrap; /* Keep it horizontal scroll */
    gap: 10px;
  }

  .page-terms-conditions__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
  }

  /* 4. 合作品牌六宫格 */
  .page-terms-conditions__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns on mobile */
    gap: 8px;
  }

  .page-terms-conditions__banner-item img {
    
    
  }

  /* 5. 博客卡片区 */
  .page-terms-conditions__blog-masonry {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 15px;
  }

  .page-terms-conditions__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page-terms-conditions__blog-slider-track {
    display: flex;
    flex-wrap: nowrap; /* Keep it horizontal scroll */
    gap: 15px;
  }

  /* 6. 通用图片与容器 */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. 按钮与按钮容器 */
  .page-terms-conditions__cta-button,
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions 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-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__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; /* Stack buttons vertically on mobile */
  }
}