/* style/terms-conditions.css */

/* --- Base Styles --- */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Custom background color */
}

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #ffffff; /* Explicit background for hero */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-terms-conditions__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
  font-weight: 700;
  color: #E53935; /* Main brand color for H1 */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-terms-conditions__intro-text {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Content Section --- */
.page-terms-conditions__content-section {
  padding: 40px 20px;
  background-color: #F5F7FA; /* Custom background for content section */
  color: #333333; /* Text Main color */
}

.page-terms-conditions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #FFFFFF; /* Card BG color */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #E0E0E0; /* Border color */
}

.page-terms-conditions__section-title {
  font-size: 28px;
  font-weight: 700;
  color: #E53935;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #FF5A4F; /* Auxiliary color for accent */
  padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333333;
}

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

.page-terms-conditions__list-item {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333333;
}

.page-terms-conditions__image-wrapper {
  width: 100%;
  max-width: 800px; /* Max width for content images */
  margin: 20px auto;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 8px;
}

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Call to Action Buttons --- */
.page-terms-conditions__cta-group,
.page-terms-conditions__cta-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsive behavior */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-terms-conditions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-terms-conditions__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

/* --- Responsive Styles --- */
@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; /* body handles --header-offset */
  }

  .page-terms-conditions__main-title {
    font-size: 32px;
  }

  .page-terms-conditions__intro-text {
    font-size: 16px;
  }

  .page-terms-conditions__content-section {
    padding: 20px 0; /* Adjust padding for mobile */
  }

  .page-terms-conditions__container {
    padding: 15px;
    border-radius: 0; /* Remove border-radius on mobile for full width look */
    box-shadow: none; /* Remove shadow on mobile */
    border: none;
  }

  .page-terms-conditions__section-title {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item {
    font-size: 15px;
  }

  /* Images responsive */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-terms-conditions__cta-group,
  .page-terms-conditions__cta-wrapper {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    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;
  }
}