:root {
  --primary-color: #336699; /* Deep Blue */
  --secondary-color: #FFCC00; /* Gold/Yellow */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212; /* Body background from shared.css */
  --border-light: #e0e0e0;
}

/* Base styles for the page content */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if main has its own bg */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: var(--primary-color); /* Use primary brand color for hero */
  color: var(--text-light);
  text-align: center;
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%; /* Ensure container takes full width on mobile */
  box-sizing: border-box;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light);
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-terms-conditions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width on mobile */
  box-sizing: border-box;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__cta-button--primary {
  background: var(--secondary-color); /* Gold for primary action */
  color: var(--text-dark); /* Dark text on gold for contrast */
}

.page-terms-conditions__cta-button--primary:hover {
  background: #e6b800; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button--secondary {
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.page-terms-conditions__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 20px;
}

.page-terms-conditions__dark-bg {
  background-color: var(--bg-dark); /* Use body background for content */
  color: var(--text-light);
}

.page-terms-conditions__light-bg {
  background-color: var(--primary-color); /* Use primary color for promo CTA */
  color: var(--text-light);
  padding: 60px 20px;
}

.page-terms-conditions__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-light); /* Default light text for dark background */
  font-weight: bold;
}

.page-terms-conditions__section-title--dark {
  color: var(--text-light); /* Still light text for primary color background */
}

.page-terms-conditions__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold for sub-titles */
  font-weight: bold;
}

.page-terms-conditions__text-block {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85); /* Slightly off-white for body text */
}

.page-terms-conditions__text-block--dark {
  color: rgba(255, 255, 255, 0.85); /* Still light text for primary color background */
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.page-terms-conditions__list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-terms-conditions__list li a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-terms-conditions__list li a:hover {
  color: #e6b800;
}

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

/* Link styling */
.page-terms-conditions a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: #e6b800;
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 2.8em;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .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;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to container */
  }

  .page-terms-conditions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-terms-conditions__content-section {
    padding: 40px 15px;
  }

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

  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.4em;
  }

  .page-terms-conditions__text-block,
  .page-terms-conditions__list li {
    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__promotion-cta {
    padding: 60px 15px;
  }
}

/* Ensure images don't use filter */
.page-terms-conditions img {
  filter: none !important;
}

/* Content area images CSS dimensions lower bound */
.page-terms-conditions__content-section img {
    min-width: 200px;
    min-height: 200px;
}