/* style/terms-conditions.css */

:root {
  --primary-color: #0A2240;
  --secondary-color: #FFD700;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --dark-background-variant: #1A355A; /* Slightly lighter dark blue for content sections */
}

.page-terms-conditions {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for the main content area */
  background-color: transparent; /* Body background is handled by shared.css (#000000) */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background: var(--primary-color);
  color: var(--text-on-dark);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Minimum height for hero section */
}

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

.page-terms-conditions__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  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.2);
  border: none;
  cursor: pointer;
}

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

.page-terms-conditions__cta-button--bottom {
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Content Section */
.page-terms-conditions__content-section {
  background: var(--dark-background-variant); /* Slightly lighter dark blue */
  padding: 60px 0;
  color: var(--text-on-dark);
}

.page-terms-conditions__section-heading {
  font-size: 2.2em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 25px;
  color: var(--secondary-color); /* Gold for subheadings */
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-terms-conditions__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

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

.page-terms-conditions__list-item strong {
  color: var(--secondary-color);
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

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

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 300px;
  }
  
  .page-terms-conditions__container {
    padding: 0 15px;
  }

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

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

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

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

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

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item {
    font-size: 1em;
  }

  /* Image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  /* Ensure content containers don't cause overflow */
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-terms-conditions__content-section .page-terms-conditions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

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