/* Homepage specific media queries - MUST BE INCLUDED AS PER INSTRUCTIONS */
@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;
  }
}

@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;
  }
  /* Placeholder for other homepage modules if they existed on this page */
  .page-terms-conditions__promo-strip { /* Example, assuming it exists on homepage */
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-terms-conditions__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .page-terms-conditions__promo-card-image {
    width: 100px; /* Example fixed width */
    height: 100px;
    flex-shrink: 0;
    margin-right: 10px;
  }
  .page-terms-conditions__hot-games-grid { /* Example, assuming it exists on homepage */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-terms-conditions__hot-games-name,
  .page-terms-conditions__hot-games-rtp,
  .page-terms-conditions__hot-games-desc {
    display: block; /* Show on PC */
  }
  .page-terms-conditions__hot-games-card-image {
    text-align: center;
  }
}

/* General styles for the Terms and Conditions page */
.page-terms-conditions {
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  color: #333333;
  background: #F5F7FA; /* Light background as per custom color */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  background: #E53935; /* Primary color background for hero */
  color: #ffffff;
  padding: 40px 0;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  margin-bottom: 30px;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-terms-conditions__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-terms-conditions__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* For mobile adaptation */
  white-space: normal; /* For mobile adaptation */
  word-wrap: break-word; /* For mobile adaptation */
}

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

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

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

.page-terms-conditions__btn-secondary:hover {
  background: #f0f0f0;
  color: #c62828;
}

/* Content Sections */
.page-terms-conditions__content-section {
  padding: 40px 0;
  margin-bottom: 30px;
  background: #ffffff; /* Card BG color */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.page-terms-conditions__text-block {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1em;
  color: #333333;
}

.page-terms-conditions__text-block p {
  margin-bottom: 15px;
}

.page-terms-conditions__text-block strong {
  color: #E53935;
}

.page-terms-conditions__text-block a {
  color: #FF5A4F;
  text-decoration: underline;
}

.page-terms-conditions__text-block a:hover {
  color: #E53935;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 40px 0;
  background: #F5F7FA; /* Light background as per custom color */
  margin-bottom: 30px;
}

.page-terms-conditions__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #E0E0E0; /* Border color */
  overflow: hidden;
  background: #ffffff; /* Card BG color */
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
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;
  color: #333333;
}
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: #f9f9f9;
}
.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: #fcfcfc;
  border-radius: 0 0 8px 8px;
  color: #333333;
  line-height: 1.6;
}
.page-terms-conditions__faq-answer p {
  margin-bottom: 0;
}


/* Footer CTA Section */
.page-terms-conditions__footer-cta {
  background: #E53935; /* Primary brand color */
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  border-radius: 8px;
  max-width: 1000px;
  margin: 0 auto 30px;
  box-sizing: border-box;
}

.page-terms-conditions__footer-cta-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-terms-conditions__footer-cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
}


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

  .page-terms-conditions__hero-section {
    padding: 20px 0;
  }

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

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

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

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    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-terms-conditions__content-section,
  .page-terms-conditions__faq-section,
  .page-terms-conditions__footer-cta {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .page-terms-conditions__container {
    padding: 0 15px;
  }

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

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

  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;
  }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95em;
  }

  .page-terms-conditions__footer-cta-title {
    font-size: 2em;
  }

  .page-terms-conditions__footer-cta-description {
    font-size: 1em;
  }

  /* Mobile image adaptation */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__hero-image-wrapper { /* Ensure containers also adapt */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific for homepage modules if they were on this page (as per prompt for 768px) */
  /* These are placeholders as this is not a homepage, but included as per instructions. */
  .page-terms-conditions__promo-strip-track { /* Example for promo strip */
    grid-template-columns: repeat(1, 1fr) !important; /* Single column on mobile */
    overflow-x: hidden !important;
    padding: 0 15px;
  }
  .page-terms-conditions__promo-card {
    flex-direction: column !important;
    text-align: center;
  }
  .page-terms-conditions__promo-card-image {
    margin-right: 0 !important;
    margin-bottom: 10px;
  }
  .page-terms-conditions__hot-games-grid { /* Example for hot games */
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0 15px;
  }
  .page-terms-conditions__hot-games-name,
  .page-terms-conditions__hot-games-rtp,
  .page-terms-conditions__hot-games-desc {
    display: none; /* Hide on mobile to save space */
  }
  .page-terms-conditions__winner-ticker { /* Example for winner ticker */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 15px;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
  .page-terms-conditions__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Placeholder for .page-terms-conditions__game-trial-overlay and related elements */
.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;}.page-terms-conditions__reward-modal.is-hidden{display:none!important;pointer-events:none!important;}.page-terms-conditions__reward-modal-close{position:absolute;top:10px;right:10px;width:30px;height:30px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer;z-index:10001;}.page-terms-conditions__reward-modal-close:hover{background:#eee;}.page-terms-conditions__reward-modal-content{position:relative;background:#fff;padding:20px;border-radius:10px;max-width:500px;margin:50px auto;text-align:center;}