/* Base styles for .page-terms-conditions */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px; /* Small top padding, no var(--header-offset) */
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Using brand colors for hero background */
  color: #ffffff;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 20px;
}

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

.page-terms-conditions__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

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

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

.page-terms-conditions__cta-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-terms-conditions__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary color for text */
  border: 2px solid #2F6BFF;
}

.page-terms-conditions__btn-secondary:hover {
  background: #f0f0f0;
  color: #1a4a99;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-terms-conditions__content-section {
  padding: 60px 0;
}

.page-terms-conditions__light-bg {
  background-color: #F4F7FB; /* Background color */
  color: #1F2D3D; /* Text Main */
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #2F6BFF; /* Primary color */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #D6E2FF; /* Border color */
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-terms-conditions__paragraph a {
  color: #2F6BFF;
  text-decoration: underline;
}

.page-terms-conditions__paragraph a:hover {
  color: #6FA3FF;
}

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* --- Placeholder CSS for required sections (even if not present on this page) --- */

/* Placeholder for .page-terms-conditions__home-content (long text gold frame) */
.page-terms-conditions__home-content {
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  background-color: #FFFFFF; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: auto;
  overflow-y: visible;
}

/* Placeholder for .page-terms-conditions__row-games, .page-terms-conditions__row-sport, .page-terms-conditions__row-coop */
.page-terms-conditions__row-games,
.page-terms-conditions__row-sport,
.page-terms-conditions__row-coop {
  background-color: #2F6BFF; /* Using primary color for a dark section */
  padding: 40px 20px;
  max-width: 1330px;
  margin: 40px auto;
  border-radius: 10px;
  color: #ffffff;
}

.page-terms-conditions__games-title,
.page-terms-conditions__sport-title,
.page-terms-conditions__coop-title {
  color: #fff;
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

/* Placeholder for .page-terms-conditions__slider-wrapper (game carousel) */
.page-terms-conditions__slider-wrapper {
  overflow: hidden;
  position: relative;
  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: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Placeholder for .page-terms-conditions__banners-top-wrapper (partner grid) */
.page-terms-conditions__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  align-items: center;
}

.page-terms-conditions__banner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FFFFFF;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__banner-item img {
  object-fit: contain;
  margin: 0 auto;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  width: 100%;
  height: auto;
}

/* Placeholder for .page-terms-conditions__blog-masonry (blog card area) */
.page-terms-conditions__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch; /* Ensure cards in a row have same height */
  margin-top: 40px;
  padding: 0 20px;
}

.page-terms-conditions__blog-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-terms-conditions__blog-card-image {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

.page-terms-conditions__blog-card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #1F2D3D;
  margin-bottom: 10px;
}

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

.page-terms-conditions__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #2F6BFF;
  border-radius: 5px;
  color: #2F6BFF;
  text-decoration: none;
  margin-top: auto; /* Push to bottom */
  align-self: flex-start;
  transition: all 0.3s ease;
}

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

/* Placeholder for .page-terms-conditions__blog-slider (blog carousel) */
.page-terms-conditions__blog-slider {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  margin-top: 40px;
}

.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); /* Approx 3 items with gap */
  max-width: calc(33.333% - 14px);
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Styles (Mobile First / Desktop Override) --- */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    max-width: 768px;
  }
  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-terms-conditions__banners-top-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-terms-conditions__blog-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-terms-conditions__blog-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}


@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-terms-conditions__hero-section {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    padding-bottom: 30px;
  }
  .page-terms-conditions__hero-content {
    padding: 0 15px;
  }
  .page-terms-conditions__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em); /* Adjust for smaller screens */
    line-height: 1.3;
  }
  .page-terms-conditions__description {
    font-size: 1em;
  }
  .page-terms-conditions__cta-wrapper {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Add padding to wrapper */
    box-sizing: border-box;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 长文金框区 (Placeholder) */
  .page-terms-conditions__home-content {
    padding: 20px 15px;
    margin-top: 20px;
  }
  .page-terms-conditions__home-content h2 {
    font-size: 1.8em; /* Adjust h2 size */
  }

  /* 游戏轮播 (Placeholder) */
  .page-terms-conditions__slider-wrapper {
    padding: 15px 0;
  }
  .page-terms-conditions__slider-track {
    display: flex; /* Must be flex */
    scroll-snap-type: x mandatory;
  }
  .page-terms-conditions__game-slide {
    flex: 0 0 calc(50% - 8px); /* Two items per row, with gap */
    max-width: calc(50% - 8px);
    scroll-snap-align: start;
  }

  /* 合作品牌六宫格 (Placeholder) */
  .page-terms-conditions__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns */
    gap: 10px;
    padding: 0 15px;
  }
  .page-terms-conditions__banner-item img {
    min-width: 200px !important; /* Enforce min size on mobile */
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 博客卡片区 (Placeholder) */
  .page-terms-conditions__blog-masonry {
    grid-template-columns: 1fr; /* Single column */
    gap: 15px;
    padding: 0 15px;
  }
  .page-terms-conditions__blog-card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-terms-conditions__blog-card-title {
    font-size: 1.2em;
  }

  /* 博客轮播 (Placeholder) */
  .page-terms-conditions__blog-slider {
    padding: 15px 0;
  }
  .page-terms-conditions__blog-slider-track {
    display: flex; /* Must be flex */
    scroll-snap-type: x mandatory;
  }
  .page-terms-conditions__blog-slide {
    flex: 0 0 100%; /* Single item per view */
    max-width: 100%;
    scroll-snap-align: start;
  }

  /* 通用图片与容器 */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce minimum size on mobile */
    min-height: 200px !important;
  }
  .page-terms-conditions__container,
  .page-terms-conditions__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Adjust general text sizes */
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__sub-title {
    font-size: 1.3em;
  }
  .page-terms-conditions__paragraph {
    font-size: 0.95em;
  }
}