/* style/terms-conditions.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg-color: #0d1117;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --border-color: #e0e0e0;
  --card-bg-color: rgba(255, 255, 255, 0.08);
  --button-hover-darken: #0056b3;
  --button-hover-lighten: #e0a800;
}

.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: var(--dark-bg-color); /* Ensure consistency with body background */
}

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

/* Fixed Navbar Spacing */
.page-terms-conditions__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

.page-terms-conditions__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004d99 100%);
  padding-bottom: 60px;
  text-align: center;
  color: var(--light-text-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--light-text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-terms-conditions__btn-primary {
  background: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-terms-conditions__btn-primary:hover {
  background: var(--button-hover-lighten);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__btn-secondary {
  background: transparent;
  color: var(--light-text-color);
  border: 2px solid var(--light-text-color);
}

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

.page-terms-conditions__content-section {
  background-color: var(--dark-bg-color); /* Use dark background */
  color: var(--light-text-color); /* Light text for dark background */
  padding: 60px 0;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions h2:not(:first-of-type) {
  margin-top: 50px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.page-terms-conditions p a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-terms-conditions p a:hover {
  text-decoration: underline;
}

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

.page-terms-conditions__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-terms-conditions__list li strong {
  color: var(--light-text-color);
}

.page-terms-conditions__list li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-terms-conditions__list li a:hover {
  text-decoration: underline;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__cta-bottom-section {
  background: linear-gradient(45deg, #004d99 0%, var(--primary-color) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--light-text-color);
}

.page-terms-conditions__cta-bottom-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--light-text-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-bottom-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-terms-conditions__cta-bottom-title a:hover {
  text-decoration: underline;
}

.page-terms-conditions__cta-bottom-description {
  font-size: 1.15em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-terms-conditions__cta-bottom-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-terms-conditions__cta-bottom-description a:hover {
  text-decoration: underline;
}

.page-terms-conditions__cta-bottom-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--dark-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
}

.page-terms-conditions__cta-bottom-button:hover {
  background: var(--button-hover-lighten);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

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

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

  .page-terms-conditions__cta-bottom-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
  }

  .page-terms-conditions__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-terms-conditions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-terms-conditions p,
  .page-terms-conditions__list li {
    font-size: 0.95em;
  }

  .page-terms-conditions__image {
    margin: 20px auto;
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__container {
    padding: 0 15px;
  }

  .page-terms-conditions__cta-bottom-section {
    padding: 60px 0;
  }

  .page-terms-conditions__cta-bottom-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-terms-conditions__cta-bottom-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-terms-conditions__cta-bottom-button {
    padding: 15px 30px;
    font-size: 1.1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-title {
    font-size: 1.8em;
  }

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

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