/* Base styles for the Cookie Policy page */
.page-cookies-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background: #F5F7FA; /* Background */
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

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

.page-cookies-policy__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 15px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient */
  color: #ffffff;
  margin-bottom: 30px;
}

.page-cookies-policy__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-cookies-policy__main-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

.page-cookies-policy__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cookies-policy__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cookies-policy__section {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  padding: 30px;
  box-sizing: border-box;
}

.page-cookies-policy__section-title {
  font-size: 2em;
  color: #E53935; /* Main color */
  margin-bottom: 20px;
  text-align: center;
}

.page-cookies-policy__subsection-title {
  font-size: 1.5em;
  color: #FF5A4F; /* Accent color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cookies-policy__text-block {
  margin-bottom: 15px;
  font-size: 1em;
  color: #333333; /* Text Main */
}

.page-cookies-policy__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333; /* Text Main */
}

.page-cookies-policy__list-item {
  margin-bottom: 10px;
}

.page-cookies-policy__list-item strong {
  color: #E53935; /* Main color */
}

.page-cookies-policy a {
  color: #E53935; /* Main color for links */
  text-decoration: underline;
}

.page-cookies-policy a:hover {
  color: #FF5A4F; /* Accent color on hover */
}

/* FAQ styles */
details.page-cookies-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.03);
}
details.page-cookies-policy__faq-item summary.page-cookies-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;
}
details.page-cookies-policy__faq-item summary.page-cookies-policy__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cookies-policy__faq-item summary.page-cookies-policy__faq-question:hover {
  background: #fdfdfd;
}
.page-cookies-policy__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Text Main */
}
.page-cookies-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cookies-policy__faq-item .page-cookies-policy__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #333333; /* Text Main */
}
details.page-cookies-policy__faq-item[open] .page-cookies-policy__faq-question {
  background-color: #f5f5f5;
}

/* Homepage-specific global classes (from prompt's example) */
.page-cookies-policy__game-trial-overlay{z-index:5;pointer-events:auto;}
.page-cookies-policy__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}
.page-cookies-policy__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}
.page-cookies-policy__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}
.page-cookies-policy__reward-modal{position:fixed;inset:0;z-index:10000;}

/* --- BEGIN: HOMEPAGE SPECIFIC MEDIA QUERIES (REQUIRED STRUCTURE) --- */
/* Although this is a Cookie Policy page, the prompt explicitly requires these media queries. */
/* Their content is adapted to be neutral or minimal for this non-homepage context. */

@media (max-width: 1023px) {
  .page-cookies-policy__home-hero { /* This class is not used on this page, but kept for structural compliance */
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-cookies-policy__hero-brand, /* Not used on this page */
  .page-cookies-policy__hero-jackpot { /* Not used on this page */
    display: none !important;
  }
  .page-cookies-policy__game-trial { /* Not used on this page */
    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-cookies-policy__game-trial-shell { /* Not used on this page */
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cookies-policy__game-trial-topbar, /* Not used on this page */
  .page-cookies-policy__game-trial-bottombar { /* Not used on this page */
    display: none !important;
  }
  .page-cookies-policy__game-trial-viewport { /* Not used on this page */
    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-cookies-policy__game-trial-frame { /* Not used on this page */
    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-cookies-policy__game-trial-overlay { /* Not used on this page */
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-cookies-policy__game-trial-start { /* Not used on this page */
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  /* General mobile adjustments for this page */
  .page-cookies-policy__main-title {
    font-size: 2.2em;
  }
  .page-cookies-policy__section-title {
    font-size: 1.8em;
  }
  .page-cookies-policy__faq-qtext {
    font-size: 1em;
  }
}

@media (min-width: 1024px) {
  .page-cookies-policy__home-hero { /* This class is not used on this page, but kept for structural compliance */
    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-cookies-policy__hero-brand, /* Not used on this page */
  .page-cookies-policy__hero-jackpot, /* Not used on this page */
  .page-cookies-policy__game-trial { /* Not used on this page */
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-cookies-policy__game-trial { /* Not used on this page */
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-cookies-policy__game-trial-shell { /* Not used on this page */
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-cookies-policy__game-trial-viewport { /* Not used on this page */
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-cookies-policy__game-trial-frame { /* Not used on this page */
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-cookies-policy__hero-jackpot-claim { /* Not used on this page */
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Homepage specific elements' media queries (required structure, but empty for this page) */
  .page-cookies-policy__promo-strip { margin-top: 16px; }
  .page-cookies-policy__promo-strip-track { /* This would be for homepage promo strip */ }
  .page-cookies-policy__hot-games-grid { /* This would be for homepage hot games grid */ }
  .page-cookies-policy__brand-intro-content { /* This would be for homepage brand intro */ }
  .page-cookies-policy__winner-ticker-wrapper { /* This would be for homepage winner ticker */ }
}
/* --- END: HOMEPAGE SPECIFIC MEDIA QUERIES (REQUIRED STRUCTURE) --- */

/* Mobile responsive adaptations (max-width: 768px) - Required for this page */
@media (max-width: 768px) {
  .page-cookies-policy {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cookies-policy__container {
    padding: 0 10px;
  }

  .page-cookies-policy__hero-section {
    padding: 30px 10px;
  }

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

  .page-cookies-policy__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* All images responsive */
  .page-cookies-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  /* All image containers responsive */
  .page-cookies-policy__section,
  .page-cookies-policy__card,
  .page-cookies-policy__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All buttons responsive */
  .page-cookies-policy__cta-button,
  .page-cookies-policy__btn-primary,
  .page-cookies-policy__btn-secondary,
  .page-cookies-policy a[class*="button"],
  .page-cookies-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;
  }
  
  /* All button containers responsive */
  .page-cookies-policy__cta-buttons,
  .page-cookies-policy__button-group,
  .page-cookies-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;
  }
  /* If buttons are flex, ensure vertical stacking or wrapping */
  .page-cookies-policy__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  .page-cookies-policy__section-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }

  .page-cookies-policy__subsection-title {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-cookies-policy__list {
    margin-left: 15px;
    margin-bottom: 15px;
  }

  .page-cookies-policy__list-item {
    margin-bottom: 8px;
  }

  /* FAQ specific mobile styles */
  details.page-cookies-policy__faq-item summary.page-cookies-policy__faq-question { padding: 15px; }
  .page-cookies-policy__faq-qtext { font-size: 15px; }
  .page-cookies-policy__faq-answer { padding: 0 15px 15px; }

  /* Specific 768px blocks for homepage elements (required structure, but empty for this page) */
  /* These are not present on the Cookie Policy page, but the media query blocks must exist as per prompt. */
  .page-cookies-policy__promo-strip-track { /* 2. 优惠 __promo-strip */ }
  .page-cookies-policy__hot-games-grid { /* 3. 热门 __hot-games */ }
  .page-cookies-policy__brand-intro { /* 4. 品牌 __brand-intro */ }
  .page-cookies-policy__winner-ticker { /* 5. 中奖条 __winner-ticker */ }
}