/* style/terms-conditions.css */

/* Base styles for the page content wrapper */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Use light text on dark body background */
  background-color: var(--bg-color); /* Inherited from body or main */
  padding-bottom: 40px; /* General padding for bottom */
}

/* Custom CSS Variables from provided color scheme */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --bg-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  margin-bottom: 40px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px; /* Minimum size requirement */
  border: 1px solid var(--border-color);
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  position: relative; /* Ensure content is above any potential background */
  z-index: 1;
  color: var(--text-main-color);
}

.page-terms-conditions__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: bold;
  color: var(--gold-color); /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

/* General Content Section */
.page-terms-conditions__content-section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: var(--bg-color); /* Dark background for sections */
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: var(--gold-color); /* Gold for section titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-terms-conditions__text-block {
  background-color: var(--card-bg-color); /* Card background for text blocks */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  color: var(--text-main-color);
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: var(--primary-color); /* Primary color for sub-titles */
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-terms-conditions__text-block p {
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-terms-conditions__text-block ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-terms-conditions__text-block ol {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-terms-conditions__text-block li {
  margin-bottom: 8px;
  color: var(--text-main-color);
}

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  min-width: 200px; /* Minimum size requirement */
  border: 1px solid var(--border-color);
}

/* CTA Buttons */
.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button--small {
  font-size: 0.9em;
  padding: 10px 20px;
  margin-top: 20px;
}