.page-terms-conditions {
  color: #333333; /* Text Main */
  background: #F5F7FA; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  background-color: #fff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding-bottom: 30px; /* Space for content below image */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 400px; /* Adjust as needed */
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

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

.page-terms-conditions__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #E53935; /* Main color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-terms-conditions__intro-text {
  font-size: 1.1em;
  color: #333333; /* Text Main */
  margin-bottom: 30px;
}

/* Content Area */
.page-terms-conditions__content-area {
  padding: 40px 0;
  background: #F5F7FA; /* Background */
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #E53935; /* Main color */
  margin-bottom: 25px;
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FF5A4F; /* Auxiliary color */
}

.page-terms-conditions h3 {
  font-size: 1.5em;
  color: #333333; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #333333; /* Text Main */
}

.page-terms-conditions a {
  color: #E53935; /* Main color */
  text-decoration: underline;
}

.page-terms-conditions a:hover {
  color: #FF5A4F; /* Auxiliary color */
}

.page-terms-conditions__image-text-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 40px 0;
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
}

.page-terms-conditions__content-image {
  width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-terms-conditions__text-content {
  flex: 1;
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: #E53935; /* Main color */
  margin-top: 0;
  margin-bottom: 15px;
}

/* CTA Section */
.page-terms-conditions__cta-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  margin: 60px 0;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background: #ffffff; /* White background for contrast */
  color: #E53935; /* Main color text */
  border: 2px solid #ffffff;
}

.page-terms-conditions__btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 40px 0 60px;
  background: #F5F7FA; /* Background */
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: none;
}

/* FAQ styles (details + summary based on prompt) */
details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
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; /* Text Main */
}
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; /* Text Main */
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935; /* Main 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; /* Text Main */
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer p {
  margin-bottom: 0;
}

/* Contact CTA Section */
.page-terms-conditions__contact-cta {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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


/* --- MANDATORY HOMEPAGE CSS BLOCKS (for the output format, even if this is an inner page) --- */

@media (max-width: 1023px) {
  .page-terms-conditions__home-hero { /* This class is for homepage, but needs to be included as per prompt */
    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 { /* This class is for homepage, but needs to be included as per prompt */
    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 PC modules as required by prompt */
  .page-terms-conditions__promo-strip { /* Example of a homepage module that might need PC styling */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 15px;
  }
  .page-terms-conditions__hot-games { /* Example of a homepage module that might need PC styling */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 15px;
  }
  .page-terms-conditions__hot-games-name,
  .page-terms-conditions__hot-games-rtp,
  .page-terms-conditions__hot-games-desc {
    display: block; /* Show on PC */
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-content {
    padding: 20px 15px 0;
  }
  .page-terms-conditions__main-title {
    font-size: 2em;
  }
  .page-terms-conditions__intro-text {
    font-size: 1em;
  }

  .page-terms-conditions__section-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-terms-conditions h3 {
    font-size: 1.3em;
  }

  .page-terms-conditions__image-text-block {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  .page-terms-conditions__content-image {
    width: 100%;
  }
  .page-terms-conditions__sub-title {
    font-size: 1.4em;
  }

  .page-terms-conditions__cta-title {
    font-size: 2em;
  }
  .page-terms-conditions__cta-description {
    font-size: 1em;
  }
  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 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__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__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;
  }

  /* FAQ */
  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; height: 24px; margin-left: 10px;}
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer { padding: 0 15px 15px; }

  .page-terms-conditions__contact-title {
    font-size: 2em;
  }
  .page-terms-conditions__contact-description {
    font-size: 1em;
  }

  /* General image responsiveness for content area */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__image-text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholder for homepage modules, ensuring they don't cause horizontal scroll */
  .page-terms-conditions__promo-strip-track { /* This specific class is from prompt */
    grid-template-columns: repeat(4,1fr); /* Still 4, but items inside should be responsive */
    overflow-x: hidden; /* Ensure no horizontal scroll for the track */
    display: flex; /* Change to flex for better wrapping */
    flex-wrap: wrap; /* Allow items to wrap */
    gap: 10px; /* Spacing between items */
    padding: 0 15px; /* Inner padding */
  }
  .page-terms-conditions__promo-card { /* Assuming card inside promo-strip */
    width: calc(50% - 10px); /* 2 cards per row on mobile */
    box-sizing: border-box;
  }
  .page-terms-conditions__promo-card-image {
    width: 100%;
    height: auto;
  }
  .page-terms-conditions__hot-games-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-terms-conditions__hot-games-card {
    width: 100%;
    box-sizing: border-box;
  }
  .page-terms-conditions__hot-games-name,
  .page-terms-conditions__hot-games-rtp,
  .page-terms-conditions__hot-games-desc {
    display: none; /* Hide for mobile */
  }
  .page-terms-conditions__brand-intro { /* Assuming this is a homepage module */
    padding: 20px 15px;
  }
  .page-terms-conditions__winner-ticker { /* Assuming this is a homepage module */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 15px;
    z-index: 999;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
  main.page-content {
    padding-bottom: 50px; /* Also adjust main content padding to prevent overlap */
  }
}
/* General CSS for game trial overlay (from 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;}

/* Additional styles for contrast and brand colors */
.page-terms-conditions__dark-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
}
.page-terms-conditions__light-bg {
  background: #F5F7FA;
  color: #333333;
}
.page-terms-conditions__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #E0E0E0;
}
.page-terms-conditions__btn-primary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #ffffff;
}
.page-terms-conditions__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}