.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Main text color */
  background-color: #140C0C; /* Main background color */
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
}

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

.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  background: linear-gradient(180deg, #7E0D0D 0%, #140C0C 100%);
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-terms-conditions__main-title {
  font-size: 48px;
  font-weight: 700;
  color: #F3C54D; /* Gold color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #E53030 0%, #C61F1F 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(229, 48, 48, 0.5);
}

.page-terms-conditions__btn-secondary {
  background: #2A1212;
  color: #F3C54D;
  border: 2px solid #6A1E1E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-secondary:hover {
  background: #6A1E1E;
  color: #FFF1E8;
  border-color: #F3C54D;
  box-shadow: 0 6px 15px rgba(106, 30, 30, 0.4);
}

.page-terms-conditions__section {
  padding: 60px 0;
}

.page-terms-conditions__content-area {
  background-color: #2A1212; /* Card BG color */
  color: #FFF1E8; /* Text Main color */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
  padding: 40px;
}

.page-terms-conditions__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #F3C54D; /* Gold color for section titles */
  margin-bottom: 25px;
  border-bottom: 2px solid #6A1E1E; /* Border color */
  padding-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #FFF1E8;
}

.page-terms-conditions__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #FFF1E8;
}

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

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__faq-image {
  max-width: 800px;
  margin: 30px auto 50px;
}

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #2A1212; /* Card BG color */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
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: #7E0D0D; /* Deep Red for hover */
}
.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold color for FAQ questions */
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF1E8; /* Text 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: #140C0C; /* Background color */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8; /* Text Main color */
  font-size: 16px;
}
.page-terms-conditions__faq-answer p {
  margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 40px;
  }
  .page-terms-conditions__section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 8px; /* Small top padding for mobile */
  }

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

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

  .page-terms-conditions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  .page-terms-conditions__hero-content {
    padding: 0 10px;
  }

  .page-terms-conditions__main-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .page-terms-conditions__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .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;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-terms-conditions__section {
    padding: 40px 0;
  }

  .page-terms-conditions__content-area {
    padding: 25px;
    margin-top: 25px;
  }

  .page-terms-conditions__section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }

  .page-terms-conditions p,
  .page-terms-conditions__list li {
    font-size: 15px;
  }

  .page-terms-conditions__list {
    padding-left: 15px;
  }

  .page-terms-conditions__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-terms-conditions__faq-section {
    padding: 40px 0;
  }

  .page-terms-conditions__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto 30px;
  }
  
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question { padding: 15px; }
  .page-terms-conditions__faq-qtext { font-size: 15px; }
  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Homepage specific CSS blocks - Included as per strict instruction to include these blocks for all pages */
@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;
  }
}

@media (max-width: 768px) {
  /* Homepage specific blocks for 768px - as per strict instruction */
  .page-terms-conditions__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-terms-conditions__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Generic 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Generic mobile button adaptation */
  .page-terms-conditions__cta-button,
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions 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-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;
  }
  .page-terms-conditions__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

.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;
}
.page-terms-conditions__reward-modal-content {
  background: #2A1212;
  color: #FFF1E8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
}
.page-terms-conditions__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFF1E8;
  cursor: pointer;
}
.page-terms-conditions__reward-modal h3 {
  color: #F3C54D;
  margin-bottom: 15px;
}
.page-terms-conditions__reward-modal p {
  color: #FFF1E8;
  margin-bottom: 20px;
}
.page-terms-conditions__reward-modal .page-terms-conditions__btn-primary {
  width: auto;
  min-width: 150px;
}