/* Base styles for the terms-conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* Background */
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

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

.page-terms-conditions__container--narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-terms-conditions__hero-section {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient as hero background */
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-terms-conditions__hero-section .page-terms-conditions__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

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

.page-terms-conditions__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Using clamp as per instruction */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-terms-conditions__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-terms-conditions__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button--secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
}

.page-terms-conditions__cta-button--secondary:hover {
    background: #e0e0e0;
    color: #2F6BFF;
}

.page-terms-conditions__hero-image-wrapper {
    margin-top: 30px;
    width: 100%;
    max-width: 800px; /* Adjust as needed for display */
}

.page-terms-conditions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__content-section {
    padding: 40px 0;
    background: #FFFFFF; /* Card BG */
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-terms-conditions__dark-bg {
    background: #2F6BFF; /* Main color */
    color: #ffffff;
}

.page-terms-conditions__light-bg {
    background: #F4F7FB; /* Background color */
    color: #1F2D3D;
}

.page-terms-conditions__section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from parent section */
}

.page-terms-conditions__sub-title {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

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

.page-terms-conditions ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: inherit;
}

.page-terms-conditions li {
    margin-bottom: 8px;
    color: inherit;
}

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

.page-terms-conditions__image--centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__image--left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    max-width: 50%;
}

.page-terms-conditions__image--right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
    max-width: 50%;
}

/* Clearfix for floated images */
.page-terms-conditions__content-section::after {
    content: "";
    display: table;
    clear: both;
}

/* FAQ Styles */
.page-terms-conditions__faq-section {
    padding: 40px 0;
    background: #F4F7FB;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.page-terms-conditions__faq-list {
    margin-top: 30px;
}

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #fff;
}
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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main color for toggle */
  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: #1F2D3D;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer p {
    margin-bottom: 0;
}


/* Game Trial Overlay/Modal Styles (as per example JSON output, even if not directly used) */
.page-terms-conditions__game-trial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5; /* As per example */
    pointer-events: auto;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.page-terms-conditions__game-trial-overlay.is-hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none !important;
}

.page-terms-conditions__game-trial-start {
    z-index: 6; /* As per example */
    pointer-events: auto;
    touch-action: manipulation;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.page-terms-conditions__game-trial-start:hover {
    transform: scale(1.05);
}

.page-terms-conditions__reward-modal {
    position: fixed;
    inset: 0;
    z-index: 10000; /* As per example */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.page-terms-conditions__reward-modal[hidden] {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.page-terms-conditions__reward-modal-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    color: #1F2D3D;
}

.page-terms-conditions__reward-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
}

.page-terms-conditions__reward-modal-title {
    font-size: 28px;
    color: #2F6BFF;
    margin-bottom: 15px;
}

.page-terms-conditions__reward-modal-text {
    font-size: 16px;
    margin-bottom: 25px;
}

/* --- Start of Homepage Trial CSS (as per example JSON output) --- */
@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;
  }
}