/* Base styles for the privacy policy page */
.page-privacy-policy {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background: #F4F7FB; /* Body background from custom colors */
}

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

.page-privacy-policy__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  margin-bottom: 30px;
}

.page-privacy-policy__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__intro-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  color: #f0f0f0;
}

.page-privacy-policy__content-section {
  padding: 40px 0;
  background: #FFFFFF; /* Card BG from custom colors */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-privacy-policy__section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main from custom colors */
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 2px solid #D6E2FF; /* Border from custom colors */
  padding-bottom: 10px;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #1F2D3D; /* Text Main from custom colors */
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main from custom colors */
}

.page-privacy-policy__list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-privacy-policy__list li strong {
  color: #2F6BFF;
}

.page-privacy-policy a {
  color: #2F6BFF;
  text-decoration: none;
}

.page-privacy-policy a:hover {
  text-decoration: underline;
}

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

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

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  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, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-privacy-policy__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-privacy-policy__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-privacy-policy__btn-secondary:hover {
  background: #f0f5ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 40px 0 60px;
  background: #F4F7FB; /* Background from custom colors */
}

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

details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border from custom colors */
  overflow: hidden;
  background: #FFFFFF; /* Card BG from custom colors */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
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;
}
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: #f5f8fc;
}
.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main from custom colors */
}
.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main color for toggle icon */
  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: #F4F7FB; /* Background from custom colors */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D;
}

/* --- Homepage Trial Layout CSS (Mandatory Inclusion) --- */
/* This section is included as per strict instructions, even for non-homepage files. */
@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;
  }
  .page-privacy-policy__promo-strip {
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .page-privacy-policy__hot-games {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 16px;
  }
  .page-privacy-policy__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
  }
  .page-privacy-policy__hot-games-item-name,
  .page-privacy-policy__hot-games-item-rtp,
  .page-privacy-policy__hot-games-item-desc {
    display: block;
  }
}

/* --- Mobile Responsive (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding-bottom: 30px;
  }
  .page-privacy-policy__main-title {
    font-size: 28px;
  }
  .page-privacy-policy__intro-text {
    font-size: 16px;
  }
  .page-privacy-policy__section-title {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-privacy-policy p,
  .page-privacy-policy__list li {
    font-size: 15px;
  }
  .page-privacy-policy__list {
    margin-left: 20px;
  }
  .page-privacy-policy__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    width: 100% !important;
    max-width: 90% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* FAQ specific mobile styles */
  details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question { padding: 15px; }
  .page-privacy-policy__faq-qtext { font-size: 15px; }
  .page-privacy-policy__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px;}
  details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 15px 15px;
  }

  /* General image and container responsive styles */
  .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;
  }
  
  /* Placeholder for homepage promo strip (if present on index) */
  .page-privacy-policy__promo-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 15px;
    overflow-x: hidden;
  }
  .page-privacy-policy__promo-card-image {
    max-width: 100%;
    height: auto;
  }
  .page-privacy-policy__promo-card-content {
    padding: 10px;
    text-align: center;
  }
  .page-privacy-policy__promo-card-title {
    font-size: 16px;
  }
  .page-privacy-policy__promo-card-button {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
  }

  /* Placeholder for homepage hot games (if present on index) */
  .page-privacy-policy__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 15px;
  }
  .page-privacy-policy__hot-games-item-image {
    max-width: 100%;
    height: auto;
  }
  .page-privacy-policy__hot-games-item-name,
  .page-privacy-policy__hot-games-item-rtp,
  .page-privacy-policy__hot-games-item-desc {
    display: none; /* Hide for mobile to keep clean */
  }
  .page-privacy-policy__hot-games-item-button {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
  }

  /* Placeholder for homepage brand intro (if present on index) */
  .page-privacy-policy__brand-intro {
    padding: 20px 15px;
  }

  /* Placeholder for homepage winner ticker (if present on index) */
  .page-privacy-policy__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 15px;
    z-index: 100;
  }
  body {
    padding-bottom: 40px; /* Adjust body padding for fixed ticker */
  }
}

/* Common styles for game trial overlay/modal (if present) */
.page-privacy-policy__game-trial-overlay{z-index:5;pointer-events:auto;}
.page-privacy-policy__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}
.page-privacy-policy__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}
.page-privacy-policy__game-trial-shell{border:1px solid #D6E2FF;border-radius:10px;overflow:hidden;}
.page-privacy-policy__reward-modal{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,0.7);display:flex;align-items:center;justify-content:center;}
.page-privacy-policy__reward-modal.is-hidden{display:none!important;}
.page-privacy-policy__reward-modal-content{
  background:#FFFFFF;
  padding:30px;
  border-radius:10px;
  text-align:center;
  max-width:90%;
  width:400px;
  position:relative;
}
.page-privacy-policy__reward-modal-close{
  position:absolute;
  top:10px;
  right:10px;
  background:none;
  border:none;
  font-size:24px;
  cursor:pointer;
  color:#1F2D3D;
}
.page-privacy-policy__reward-modal-title{
  font-size:24px;
  color:#2F6BFF;
  margin-bottom:15px;
}
.page-privacy-policy__reward-modal-text{
  font-size:16px;
  color:#1F2D3D;
  margin-bottom:20px;
}
.page-privacy-policy__reward-modal-button{
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}
.page-privacy-policy__reward-modal-button:hover{filter:brightness(1.1);}