/* style/terms-conditions.css */

/* Base Styles & Typography */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #1a1a1a, so text must be light */
  background-color: transparent; /* Inherit from body, handled by shared.css */
}

.page-terms-conditions__dark-bg {
  background-color: #1a1a1a; /* Ensure dark background for sections that need it */
  color: #ffffff;
}

.page-terms-conditions__light-bg {
  background-color: #262626; /* Slightly lighter than body for contrast, but still dark */
  color: #ffffff;
}

.page-terms-conditions h1,
.page-terms-conditions h2,
.page-terms-conditions h3 {
  color: #26A9E0; /* Brand color for headings */
  margin-bottom: 1rem;
}

.page-terms-conditions h1 {
  font-size: 2.8em;
  text-align: center;
}

.page-terms-conditions h2 {
  font-size: 2.2em;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 0.5em;
  margin-top: 2em;
}

.page-terms-conditions h3 {
  font-size: 1.6em;
}

.page-terms-conditions a {
  color: #26A9E0;
  text-decoration: none;
}

.page-terms-conditions a:hover {
  text-decoration: underline;
}

.page-terms-conditions__paragraph {
  margin-bottom: 1em;
}

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

.page-terms-conditions__list-item {
  margin-bottom: 0.5em;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Use header offset */
  overflow: hidden;
}

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

.page-terms-conditions__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.4); /* Darken video for text readability */
}

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

.page-terms-conditions__hero-title {
  color: #ffffff;
  font-size: 3.5em;
  margin-bottom: 0.5em;
}

.page-terms-conditions__hero-description {
  color: #f0f0f0;
  font-size: 1.2em;
  margin-bottom: 1.5em;
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #262626; /* Dark background for content sections */
  color: #ffffff;
}

.page-terms-conditions__container {
  margin-bottom: 3em;
  padding: 20px;
  border-radius: 8px;
  background-color: #1a1a1a; /* Slightly darker background for content blocks */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__section-title {
  color: #26A9E0;
  font-size: 2.2em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #26A9E0;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__contact-list {
  list-style-type: none;
  padding: 0;
  margin-top: 1em;
}

.page-terms-conditions__contact-item {
  margin-bottom: 0.8em;
  padding-left: 1.5em;
  position: relative;
}

.page-terms-conditions__contact-item::before {
  content: '▶';
  color: #26A9E0;
  position: absolute;
  left: 0;
  top: 0;
}

/* FAQ Section */
.page-terms-conditions__faq-item {
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #262626;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background-color: #333333;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

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

  .page-terms-conditions h1 {
    font-size: 2.5em;
  }

  .page-terms-conditions h2 {
    font-size: 1.8em;
  }

  .page-terms-conditions h3 {
    font-size: 1.4em;
  }
}

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

  .page-terms-conditions__hero-section {
    min-height: 400px;
    padding: 30px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
  }

  .page-terms-conditions__hero-content {
    padding: 20px;
  }

  .page-terms-conditions__hero-title {
    font-size: 2em;
  }

  .page-terms-conditions__hero-description {
    font-size: 1em;
  }

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

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

  .page-terms-conditions__container {
    padding: 15px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.6em;
  }

  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-terms-conditions__hero-video-wrapper,
  .page-terms-conditions__container,
  .page-terms-conditions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__faq-question {
    padding: 12px 15px;
  }

  .page-terms-conditions__faq-answer {
    padding: 0 15px;
  }

  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 12px 15px;
  }
}