/* 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-color: #FFFFFF; /* Explicitly set for clarity */
}

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

.page-privacy-policy__hero-section {
  background-color: #f8f8f8;
  padding: 40px 0 60px;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-privacy-policy__intro-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #555555;
}

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

.page-privacy-policy__section-heading {
  font-size: clamp(24px, 3vw, 32px);
  color: #017439;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.page-privacy-policy__sub-heading {
  font-size: clamp(20px, 2.5vw, 26px);
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333333;
}

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

.page-privacy-policy__list-item {
  margin-bottom: 8px;
  font-size: 16px;
  color: #333333;
}

.page-privacy-policy__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);
}

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

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

.page-privacy-policy__btn-primary {
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-privacy-policy__btn-primary:hover {
  background: #a80707;
  border-color: #a80707;
}

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

.page-privacy-policy__btn-secondary:hover {
  background: #017439;
  color: #FFFFFF;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  padding: 40px 0 60px;
  background-color: #f0f0f0;
}

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

details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px 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;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

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: #f5f5f5;
}

.page-privacy-policy__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 15px;
  color: #555555;
}

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

.page-privacy-policy__cta-section {
  background: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-privacy-policy__cta-title {
  font-size: clamp(26px, 3.5vw, 40px);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-privacy-policy__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px;
}

.page-privacy-policy__cta-section .page-privacy-policy__btn-secondary {
  background: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

.page-privacy-policy__cta-section .page-privacy-policy__btn-secondary:hover {
  background: #f0f0f0;
  color: #017439;
  border-color: #f0f0f0;
}

/* --- General Image & Button Responsiveness --- */
.page-privacy-policy img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-privacy-policy__cta-buttons,
.page-privacy-policy__button-group,
.page-privacy-policy__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Homepage Game Trial CSS (Mandatory Inclusion) --- */
@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;
  }
}

/* --- Mobile specific styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-privacy-policy__hero-section {
    padding: 20px 0 40px;
  }

  .page-privacy-policy__main-title {
    font-size: 28px;
  }

  .page-privacy-policy__intro-text {
    font-size: 1em;
    padding: 0 10px;
  }

  .page-privacy-policy__section-heading {
    font-size: 24px;
    margin-top: 30px;
  }

  .page-privacy-policy__sub-heading {
    font-size: 20px;
    margin-top: 25px;
  }

  .page-privacy-policy__paragraph,
  .page-privacy-policy__list-item {
    font-size: 15px;
  }

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

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary,
  .page-privacy-policy a[class*="button"],
  .page-privacy-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;
  }

  .page-privacy-policy__cta-buttons,
  .page-privacy-policy__button-group,
  .page-privacy-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;
  }

  .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;
  }

  details.page-privacy-policy__faq-item summary.page-privacy-policy__faq-question {
    padding: 15px;
    font-size: 15px;
  }

  .page-privacy-policy__faq-qtext {
    font-size: 15px;
  }

  .page-privacy-policy__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer {
    padding: 0 15px 15px;
  }

  .page-privacy-policy__cta-title {
    font-size: 26px;
  }

  .page-privacy-policy__cta-description {
    font-size: 1em;
    padding: 0 10px;
  }

  /* Homepage Promo Strip (if present, must be responsive) */
  .page-privacy-policy__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example: 2 columns on mobile */
    overflow-x: hidden !important;
    padding: 0 15px;
  }

  .page-privacy-policy__promo-card {
    flex-direction: column !important; /* Stack image and text */
    text-align: center;
  }

  .page-privacy-policy__promo-card-image {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 10px;
  }

  .page-privacy-policy__promo-card-content {
    padding: 10px;
  }

  /* Homepage Hot Games (if present, must be responsive) */
  .page-privacy-policy__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    padding: 0 15px;
  }

  .page-privacy-policy__hot-games-item {
    text-align: center;
  }

  .page-privacy-policy__hot-games-name,
  .page-privacy-policy__hot-games-rtp,
  .page-privacy-policy__hot-games-desc {
    display: none !important; /* Hide details for compactness */
  }

  /* Homepage Brand Intro (if present, must be responsive) */
  .page-privacy-policy__brand-intro {
    padding: 20px 15px;
  }

  /* Homepage Winner Ticker (if present, must be responsive) */
  .page-privacy-policy__winner-ticker {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 15px;
  }

  body {
    padding-bottom: 50px; /* Adjust if winner ticker is fixed */
  }
}

/* Contrast Fixes */
.page-privacy-policy__dark-bg {
  color: #ffffff; /* Deep background with light text */
  background: #017439;
}

.page-privacy-policy__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

.page-privacy-policy__medium-bg {
  color: #000000; /* Default dark text */
  background: #FFFFFF;
}

/* Buttons specific color contrast */
.page-privacy-policy__btn-primary {
  background: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

/* Emergency fix classes */
.page-privacy-policy__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-privacy-policy__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}