/* Base styles for the Privacy Policy page */
.page-privacy-policy {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #333333);
  line-height: 1.6;
  background: var(--background-color, #F5F7FA);
}

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

/* Hero Section */
.page-privacy-policy__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 40px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-privacy-policy__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-privacy-policy__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-privacy-policy__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-privacy-policy__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  font-size: clamp(24px, 4vw, 48px); /* Responsive font size for H1 */
}

.page-privacy-policy__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Content Area */
.page-privacy-policy__content-area {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color, #E0E0E0);
}

.page-privacy-policy__content-area:last-of-type {
  border-bottom: none;
}

.page-privacy-policy__section-title {
  font-size: 2.2em;
  color: var(--primary-color, #E53935);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-privacy-policy__sub-title {
  font-size: 1.6em;
  color: var(--text-main-color, #333333);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-privacy-policy p {
  margin-bottom: 15px;
  font-size: 1em;
  color: var(--text-main-color, #333333);
}

.page-privacy-policy__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-main-color, #333333);
}

.page-privacy-policy__list li {
  margin-bottom: 8px;
  font-size: 1em;
}

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

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

.page-privacy-policy__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-privacy-policy__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-privacy-policy__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #E53935);
  border: 2px solid var(--primary-color, #E53935);
  margin-left: 15px;
}

.page-privacy-policy__btn-secondary:hover {
  background: var(--primary-color, #E53935);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-privacy-policy__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.page-privacy-policy__contact-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* CTA Section */
.page-privacy-policy__cta-section {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-privacy-policy__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-privacy-policy__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* FAQ Section */
details.page-privacy-policy__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #e0e0e0);
  overflow: hidden;
  background: var(--card-bg-color, #fff);
}
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: #f5f5f5;
}
.page-privacy-policy__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color, #333333);
}
.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 5px 5px;
  color: var(--text-main-color, #333333);
}

/* Responsive Design */
/* Mobile specific styles for images and buttons */
@media (max-width: 768px) {
  .page-privacy-policy__container {
    padding: 15px;
  }

  .page-privacy-policy__hero-section {
    min-height: 300px;
    padding-bottom: 20px;
  }

  .page-privacy-policy__hero-content {
    padding: 15px;
  }

  .page-privacy-policy__main-title {
    font-size: clamp(20px, 6vw, 36px);
  }

  .page-privacy-policy__intro-text {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-privacy-policy__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-privacy-policy__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-privacy-policy p,
  .page-privacy-policy__list li {
    font-size: 0.95em;
  }

  .page-privacy-policy__content-area {
    padding: 25px 0;
  }

  .page-privacy-policy__cta-section {
    padding: 40px 15px;
  }

  .page-privacy-policy__cta-title {
    font-size: 1.8em;
  }

  .page-privacy-policy__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-privacy-policy__btn-primary,
  .page-privacy-policy__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-privacy-policy__contact-methods {
    flex-direction: column;
    gap: 10px;
  }

  .page-privacy-policy__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all image containers are responsive */
  .page-privacy-policy__hero-image-wrapper,
  .page-privacy-policy__section,
  .page-privacy-policy__card,
  .page-privacy-policy__container,
  .page-privacy-policy__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

/* The following CSS blocks are included as per strict prompt instructions, even if not directly relevant to Privacy Policy page content. */
@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 other homepage specific rules required by prompt for 768px */
@media (max-width: 768px) {
  /* 2. Ưu đãi __promo-strip: grid repeat(4,1fr) không bị tràn; overflow-x:hidden; hình trên chữ dưới; nút width:100% */
  .page-privacy-policy__promo-strip {
    padding: 15px;
  }
  .page-privacy-policy__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  .page-privacy-policy__promo-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .page-privacy-policy__promo-card-image {
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 10px;
  }
  .page-privacy-policy__promo-card-title {
    font-size: 1em;
    margin-bottom: 5px;
  }
  .page-privacy-policy__promo-card-description {
    font-size: 0.85em;
    margin-bottom: 10px;
  }

  /* 3. Hấp dẫn __hot-games: 2 cột; ẩn name/rtp/desc; img 100% rộng */
  .page-privacy-policy__hot-games {
    padding: 15px;
  }
  .page-privacy-policy__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  .page-privacy-policy__hot-game-card {
    width: 100%;
    box-sizing: border-box;
  }
  .page-privacy-policy__hot-game-card-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-privacy-policy__hot-game-name,
  .page-privacy-policy__hot-game-rtp,
  .page-privacy-policy__hot-game-description {
    display: none !important;
  }

  /* 4. Thương hiệu __brand-intro (≤768px hiển thị) */
  .page-privacy-policy__brand-intro {
    padding: 25px 15px;
    display: block !important;
  }

  /* 5. Dòng người thắng __winner-ticker: fixed bottom bar; body/main bottom padding */
  .page-privacy-policy__winner-ticker {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 15px;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }

  /* 6. Hình ảnh và container chung: .page-privacy-policy img và khu vực nội dung max-width: 100% */
  .page-privacy-policy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-privacy-policy__content-area,
  .page-privacy-policy__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. Nút và container nút: max-width: 100%, flex wrap, v.v. */
  .page-privacy-policy__cta-button,
  .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__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }

  /* 8. Các module khác (nội dung FAQ, v.v.) */
  .page-privacy-policy__faq-section {
    padding: 25px 0;
  }
}

/* The following CSS blocks are for homepage game trial functionality and reward modal. Included as per strict prompt instructions. */
.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 rgba(212, 175, 55, 0.45);
  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;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-privacy-policy__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-privacy-policy__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.page-privacy-policy__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-privacy-policy__reward-modal-title {
  color: var(--primary-color, #E53935);
  font-size: 1.8em;
  margin-bottom: 15px;
}
.page-privacy-policy__reward-modal-text {
  margin-bottom: 25px;
  color: var(--text-main-color, #333333);
}
.page-privacy-policy--reward-open {
  overflow: hidden; /* Prevent body scroll when modal is open */
}