/* Shared styles for the entire page */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF1E8); /* Default text color from custom palette */
  background-color: var(--background, #140C0C); /* Default background from custom palette */
}

.page-privacy-policy__hero-section {
  position: relative;
  padding: 60px 0 30px;
  text-align: center;
  background-color: var(--deep-red, #7E0D0D); /* Fallback for dark section */
  overflow: hidden;
  box-sizing: border-box;
}

.page-privacy-policy__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-privacy-policy__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  color: #F3C54D; /* Gold from custom palette */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-privacy-policy__subtitle {
  font-size: clamp(1em, 2vw, 1.2em);
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-privacy-policy__content-area {
  padding: 40px 0;
  background-color: var(--background, #140C0C); /* Dark background for main content */
  color: var(--text-main, #FFF1E8);
}

.page-privacy-policy__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-privacy-policy__article {
  background-color: var(--card-bg, #2A1212); /* Card BG from custom palette */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #6A1E1E);
}

.page-privacy-policy__section-title {
  font-size: 2em;
  color: #F3C54D; /* Gold from custom palette */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--deep-red, #7E0D0D);
  padding-bottom: 10px;
}

.page-privacy-policy__subsection-title {
  font-size: 1.5em;
  color: #E53030; /* Auxiliary color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-privacy-policy__paragraph {
  margin-bottom: 15px;
  color: #FFF1E8;
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF1E8;
}

.page-privacy-policy__list li {
  margin-bottom: 8px;
}

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

.page-privacy-policy__image-inline {
  width: 100%;
  height: auto;
  display: block;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-privacy-policy__contact-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-privacy-policy__btn-primary,
.page-privacy-policy__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-privacy-policy__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
  color: #FFF1E8;
  border: 2px solid transparent;
}

.page-privacy-policy__btn-primary:hover {
  background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%);
  transform: translateY(-2px);
}

.page-privacy-policy__btn-secondary {
  background-color: transparent;
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D;
}

.page-privacy-policy__btn-secondary:hover {
  background-color: #F3C54D;
  color: #140C0C;
  transform: translateY(-2px);
}

.page-privacy-policy a {
  color: #F3C54D;
  text-decoration: underline;
}

.page-privacy-policy a:hover {
  color: #FFB04A;
}

/* FAQ Section */
.page-privacy-policy__faq-section {
  margin-top: 50px;
  background-color: var(--card-bg, #2A1212); /* Card BG */
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border, #6A1E1E);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border, #6A1E1E);
  overflow: hidden;
  background: var(--background, #140C0C);
}

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;
  background-color: var(--card-bg, #2A1212);
  color: #FFF1E8;
}

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: var(--deep-red, #7E0D0D);
}

.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D;
}

.page-privacy-policy__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D;
  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: var(--background, #140C0C);
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
}

/* Mandatory game trial CSS blocks (as per prompt) */
@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;
  }
  /* Placeholder for homepage promo strip, hot games, brand intro, winner ticker */
  .page-privacy-policy__promo-strip, .page-privacy-policy__hot-games, .page-privacy-policy__brand-intro, .page-privacy-policy__winner-ticker {
    display: none; /* Not relevant for privacy policy page */
  }
}

/* Mobile responsiveness for general content and elements */
@media (max-width: 768px) {
  .page-privacy-policy {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-privacy-policy__hero-section {
    padding: 40px 0 20px;
  }
  .page-privacy-policy__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-privacy-policy__subtitle {
    font-size: clamp(0.9em, 3vw, 1.1em);
    margin-bottom: 20px;
  }
  .page-privacy-policy__content-area {
    padding: 20px 0;
  }
  .page-privacy-policy__article {
    padding: 20px;
  }
  .page-privacy-policy__section-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-privacy-policy__subsection-title {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-privacy-policy__list {
    margin-left: 20px;
  }
  .page-privacy-policy__image-inline {
    margin: 15px 0;
  }
  .page-privacy-policy__contact-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  /* 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; }
  details.page-privacy-policy__faq-item .page-privacy-policy__faq-answer { padding: 0 15px 15px; }
  /* Universal image and container responsiveness for mobile */
  .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,
  .page-privacy-policy__article,
  .page-privacy-policy__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Placeholder for homepage promo strip, hot games, brand intro, winner ticker */
  .page-privacy-policy__promo-strip-track { /* For homepage promo strip if it were present */
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: hidden !important;
    gap: 10px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-privacy-policy__hot-games-grid { /* For homepage hot games if it were present */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-privacy-policy__hot-games-item-name, .page-privacy-policy__hot-games-item-rtp, .page-privacy-policy__hot-games-item-desc { /* Hide some elements on mobile */
    display: none !important;
  }
  .page-privacy-policy__brand-intro { /* For homepage brand intro if it were present */
    padding: 20px 15px !important;
  }
  .page-privacy-policy__winner-ticker { /* For homepage winner ticker if it were present */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 15px;
    background: rgba(0,0,0,0.8);
    color: #fff;
  }
}

/* Global elements required by game trial JS, outside media queries */
.page-privacy-policy__game-trial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.page-privacy-policy__game-trial-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important; /* Ensure it's fully hidden */
}
.page-privacy-policy__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  /* Add some basic styling for the start button if needed */
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
}
.page-privacy-policy__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
}
.page-privacy-policy__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  box-sizing: border-box;
}
.page-privacy-policy__reward-modal[hidden] {
  display: none !important;
}
.page-privacy-policy__reward-modal-content {
  background: var(--card-bg, #2A1212);
  color: #FFF1E8;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  border: 1px solid var(--gold, #F3C54D);
}
.page-privacy-policy__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2em;
  color: #F3C54D;
  cursor: pointer;
}
.page-privacy-policy__reward-modal h3 {
  color: #F3C54D;
  margin-bottom: 15px;
}
.page-privacy-policy__reward-modal p {
  margin-bottom: 20px;
}
.page-privacy-policy__reward-modal-button {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}