/* style/terms-conditions.css */

/* Base styles for the page */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #ffffff); /* Inherit from shared or default white */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0; /* Brand primary color for dark background */
}

.page-terms-conditions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
  display: block;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-terms-conditions__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* Explicitly white background for content */
  color: #333333; /* Dark text for readability on white background */
}

.page-terms-conditions__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 25px;
  color: #26A9E0; /* Brand color for main section titles */
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #000000; /* Black for sub-titles */
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.7;
}

.page-terms-conditions__paragraph a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Call to Action Section */
.page-terms-conditions__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.page-terms-conditions__cta-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-terms-conditions__cta-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__btn-primary {
  background-color: #EA7C07; /* Login/Register color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
}

.page-terms-conditions__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8ecb;
  border-color: #1a8ecb;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-terms-conditions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-terms-conditions__content-area {
    padding: 30px 15px;
  }

  .page-terms-conditions__section-title {
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__sub-title {
    margin-top: 25px;
    margin-bottom: 10px;
  }

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

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsive rules */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__hero-section,
  .page-terms-conditions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-terms-conditions__hero-content {
    padding-left: 0;
    padding-right: 0;
  }
}