/* style/terms-conditions.css */

/* Variables for consistent styling */
:root {
  --primary-color: #0A2038; /* Deep Midnight Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000; /* Body background from shared.css */
  --bg-light: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the terms-conditions page, ensuring text visibility on dark body background */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Text color must be light on dark body background */
  background-color: var(--bg-dark); /* Inherit from body or ensure dark */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  background: linear-gradient(135deg, var(--primary-color), #05101c);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  border-bottom: 5px solid var(--secondary-color);
}

.page-terms-conditions__main-title {
  font-size: 44px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold for main title */
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 18px;
  margin-bottom: 40px;
  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__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

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

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

.page-terms-conditions__cta-button--secondary {
  background: var(--primary-color); /* Dark blue background */
  color: var(--text-light); /* White text on dark blue */
  border: 2px solid var(--secondary-color); /* Gold border */
}

.page-terms-conditions__cta-button--secondary:hover {
  background: #1a3a5e; /* Slightly lighter dark blue */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.page-terms-conditions__content-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__content-section:last-of-type {
  border-bottom: none;
}

.page-terms-conditions__dark-bg {
  background-color: var(--primary-color); /* Dark blue background for sections */
  color: var(--text-light); /* Light text on dark blue */
}

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

.page-terms-conditions__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-light); /* White for sub-titles */
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 16px;
  color: var(--text-light); /* Ensure paragraphs are light text */
}

.page-terms-conditions ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-light); /* Ensure list items are light text */
}

.page-terms-conditions li {
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text-light); /* Ensure list items are light text */
}

.page-terms-conditions a {
  color: var(--secondary-color); /* Gold for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: #e6c200; /* Slightly darker gold on hover */
}

/* Images */
.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);
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 38px;
  }
  .page-terms-conditions__section-title {
    font-size: 32px;
  }
  .page-terms-conditions__sub-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-terms-conditions__hero-section {
    padding: 60px 20px;
  }
  .page-terms-conditions__main-title {
    font-size: 32px;
  }
  .page-terms-conditions__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Ensure buttons are within container */
  }
  .page-terms-conditions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-terms-conditions__content-section {
    padding: 40px 0;
  }
  .page-terms-conditions__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-terms-conditions__sub-title {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-terms-conditions p,
  .page-terms-conditions li {
    font-size: 15px;
  }

  /* Responsive images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* Ensure containers with images/buttons are responsive */
  .page-terms-conditions__container,
  .page-terms-conditions__hero-section,
  .page-terms-conditions__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: 28px;
  }
  .page-terms-conditions__section-title {
    font-size: 24px;
  }
  .page-terms-conditions__sub-title {
    font-size: 18px;
  }
}