/* Base styles for page-terms-conditions */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: var(--page-bg, #F5F7FA); /* Background */
  line-height: 1.6;
}

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

.page-terms-conditions__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #FFFFFF;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #E53935; /* Primary brand color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-terms-conditions__description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
}

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

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  opacity: 0.9;
}

.page-terms-conditions__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-terms-conditions__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  background-color: #f0f0f0;
}

.page-terms-conditions__section {
  padding: 60px 0;
  background-color: #FFFFFF;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #E53935; /* Primary brand color */
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.page-terms-conditions__sub-title {
  font-size: 1.8em;
  color: #333333; /* Text Main */
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid #FF5A4F;
  padding-bottom: 10px;
}

.page-terms-conditions__text {
  font-size: 1.05em;
  margin-bottom: 15px;
  color: #333333;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-terms-conditions__list li {
  margin-bottom: 8px;
}

.page-terms-conditions__list a {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-terms-conditions__list a:hover {
  text-decoration: underline;
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-terms-conditions__image--large {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* FAQ Section */
details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0; /* Border */
  overflow: hidden;
  background: #fff; /* Card BG */
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__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-terms-conditions__faq-item summary.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
  background: #f5f5f5;
}
.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935; /* Primary brand color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-terms-conditions__call-to-action {
  background: linear-gradient(135deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  border-radius: 0; /* Override section default */
  box-shadow: none; /* Override section default */
}

.page-terms-conditions__call-to-action .page-terms-conditions__section-title {
  color: #ffffff;
}

.page-terms-conditions__call-to-action .page-terms-conditions__text {
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-terms-conditions__call-to-action .page-terms-conditions__btn-primary {
  background: #ffffff;
  color: #E53935;
  border: none;
}

.page-terms-conditions__call-to-action .page-terms-conditions__btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

.page-terms-conditions__footer-note {
  padding: 20px 0;
  text-align: center;
  background-color: #333333;
  color: #ffffff;
  margin-top: 20px;
}

.page-terms-conditions__copyright {
  font-size: 0.9em;
  color: #cccccc;
}

/* --- Homepage-specific CSS (as required by prompt for all pages) --- */
/* A. @media (max-width: 1023px) must be output verbatim */
@media (max-width: 1023px) {
  .page-terms-conditions__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-terms-conditions__hero-brand,
  .page-terms-conditions__hero-jackpot {
    display: none !important;
  }
  .page-terms-conditions__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-terms-conditions__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-terms-conditions__game-trial-topbar,
  .page-terms-conditions__game-trial-bottombar {
    display: none !important;
  }
  .page-terms-conditions__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-terms-conditions__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-terms-conditions__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-terms-conditions__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* B. @media (min-width: 1024px) must be output verbatim */
@media (min-width: 1024px) {
  .page-terms-conditions__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-terms-conditions__hero-brand,
  .page-terms-conditions__hero-jackpot,
  .page-terms-conditions__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-terms-conditions__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-terms-conditions__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-terms-conditions__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-terms-conditions__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-terms-conditions__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* Additional PC-specific styles for homepage modules */
  .page-terms-conditions__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .page-terms-conditions__promo-card {
    display: flex;
    flex-direction: row; /* Left image, right text */
    align-items: center;
  }
  .page-terms-conditions__promo-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 10px;
  }
  .page-terms-conditions__promo-card-content {
    flex-grow: 1;
    text-align: left;
  }
  .page-terms-conditions__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .page-terms-conditions__hot-games-card-name,
  .page-terms-conditions__hot-games-card-rtp,
  .page-terms-conditions__hot-games-card-description {
    display: block; /* Show on PC */
  }
  .page-terms-conditions__hot-games-card-title {
    text-align: center;
  }
  .page-terms-conditions__winner-ticker {
    position: static; /* Not fixed on PC */
    padding-bottom: 0;
  }
}

/* --- Mobile responsiveness for page-terms-conditions (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }

  .page-terms-conditions__description {
    font-size: 1em;
  }

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

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-terms-conditions__section {
    padding: 30px 0;
    margin-bottom: 15px;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__text {
    font-size: 0.95em;
  }

  .page-terms-conditions__list {
    margin-left: 20px;
  }

  .page-terms-conditions__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Mobile styles */
  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    padding: 15px;
  }
  .page-terms-conditions__faq-qtext {
    font-size: 1em;
  }
  .page-terms-conditions__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 15px 15px;
  }

  .page-terms-conditions__call-to-action {
    padding: 40px 0;
  }
  .page-terms-conditions__call-to-action .page-terms-conditions__section-title {
    font-size: 1.8em;
  }

  /* Required homepage module styles for 768px */
  .page-terms-conditions__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 10px;
    overflow-x: hidden;
  }
  .page-terms-conditions__promo-card {
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 10px;
  }
  .page-terms-conditions__promo-card-image {
    width: 60px;
    height: 60px;
    margin-right: 0;
    margin-bottom: 8px;
  }
  .page-terms-conditions__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 10px;
  }
  .page-terms-conditions__hot-games-card-name,
  .page-terms-conditions__hot-games-card-rtp,
  .page-terms-conditions__hot-games-card-description {
    display: none; /* Hide on mobile */
  }
  .page-terms-conditions__hot-games-card-image {
    width: 100%;
    height: auto;
  }
  .page-terms-conditions__winner-ticker {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 8px 0;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 50px; /* Adjust for fixed ticker */
  }
}

/* Game Trial Overlay & Modal styles (required as per prompt) */
.page-terms-conditions__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-terms-conditions__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-terms-conditions__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-terms-conditions__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-terms-conditions__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-terms-conditions__reward-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}
.page-terms-conditions__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}
.page-terms-conditions__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-terms-conditions__reward-modal-title {
  color: #E53935;
  font-size: 1.8em;
  margin-bottom: 15px;
}
.page-terms-conditions__reward-modal-text {
  color: #333333;
  margin-bottom: 20px;
}
.page-terms-conditions__reward-modal-button {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}