/* General styles for the page-terms-conditions scope */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color); /* Inherit from shared.css, typically light */
}

/* Ensure body padding-top is handled by shared.css */
/* No padding-top: var(--header-offset) here to avoid double padding */

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding for header */
  margin-bottom: 40px;
  background-color: #140C0C; /* Using custom background color */
}

.page-terms-conditions__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Default to column for mobile-first, then row for desktop */
  align-items: center;
  gap: 30px;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.page-terms-conditions__hero-image {
  flex-shrink: 0;
  width: 100%;
  max-width: 800px; /* Max width for image in column layout */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover */
}

.page-terms-conditions__hero-text {
  text-align: center;
  color: #FFF1E8; /* Using custom text color for dark background */
  max-width: 800px;
}

.page-terms-conditions__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F3C54D; /* Gold color for main title */
}

.page-terms-conditions__lead-paragraph {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons in Hero */
.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 600px; /* Max width for button group */
  margin: 0 auto;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-terms-conditions__btn-secondary {
  background: transparent;
  color: #F3C54D; /* Gold text */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-terms-conditions__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C; /* Dark text on hover */
  transform: translateY(-2px);
}

/* Content Sections */
.page-terms-conditions__content-section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-terms-conditions__dark-section {
  background-color: #140C0C; /* Custom background color */
  color: #FFF1E8; /* Custom text color for dark background */
}

.page-terms-conditions__dark-section .page-terms-conditions__section-title {
  color: #F3C54D; /* Gold title on dark background */
}

.page-terms-conditions__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #C61F1F; /* Primary color for titles on light background */
}

.page-terms-conditions__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
}

.page-terms-conditions__article-body p {
  margin-bottom: 1em;
}

.page-terms-conditions__article-body strong {
  color: #E53030; /* Auxiliary color for strong text on light background */
}

.page-terms-conditions__dark-section .page-terms-conditions__article-body strong {
  color: #FFB04A; /* Gold/Orange for strong text on dark background */
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1.5em;
  padding-left: 0;
}

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

.page-terms-conditions__image-inline {
  width: 100%;
  height: auto;
  max-width: 800px; /* Max width for inline images */
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
}

.page-terms-conditions__faq-list {
  max-width: 900px;
  margin: 30px auto 0;
}

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #6A1E1E; /* Custom border color */
  overflow: hidden;
  background: #2A1212; /* Custom card background color */
  color: #FFF1E8; /* Custom text color */
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Slight hover effect on dark card */
}
.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold color for FAQ question */
}
.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFB04A; /* Gold/Orange for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1); /* Slightly darker background for answer */
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #FFF1E8;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-terms-conditions__hero-content-wrapper {
    flex-direction: row;
    text-align: left;
    padding: 60px 0;
  }

  .page-terms-conditions__hero-image {
    width: 50%;
    max-width: none;
  }

  .page-terms-conditions__hero-text {
    width: 50%;
    text-align: left;
  }
  
  .page-terms-conditions__main-title {
    margin-left: 0;
    margin-right: 0;
  }

  .page-terms-conditions__lead-paragraph {
    margin-left: 0;
    margin-right: 0;
  }

  .page-terms-conditions__cta-buttons {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  /* HERO Section Mobile */
  .page-terms-conditions__hero-section {
    padding-top: 10px; /* Small top padding, no var(--header-offset) */
    margin-bottom: 30px;
  }
  .page-terms-conditions__hero-content-wrapper {
    padding: 30px 15px;
  }
  .page-terms-conditions__hero-image {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .page-terms-conditions__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-terms-conditions__main-title {
    font-size: 28px; /* Fixed size for mobile */
    text-align: center;
  }
  .page-terms-conditions__lead-paragraph {
    font-size: 16px;
    text-align: center;
  }
  .page-terms-conditions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important; /* Full width buttons */
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
  }

  /* Content Sections Mobile */
  .page-terms-conditions__content-section {
    padding: 30px 0;
    margin-bottom: 15px;
  }
  .page-terms-conditions__section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding: 0 15px;
  }
  .page-terms-conditions__article-body {
    font-size: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions__article-body img,
  .page-terms-conditions img { /* General image responsive rule */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions__list {
    margin-left: 15px;
    padding-left: 0;
  }
  .page-terms-conditions__list li {
    font-size: 15px;
  }

  /* FAQ Section Mobile */
  .page-terms-conditions__faq-section {
    padding: 40px 0;
  }
  .page-terms-conditions__faq-list {
    margin-top: 20px;
    padding: 0 15px;
  }
  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question { padding: 15px; }
  .page-terms-conditions__faq-qtext { font-size: 16px; }
  .page-terms-conditions__faq-toggle { font-size: 24px; width: 28px; }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 15px 15px;
  }
}