/* style/terms-conditions.css */

/* Custom Colors */
:root {
  --page-bg: #08160F; /* Custom Background */
  --card-bg: #11271B; /* Custom Card BG */
  --text-main: #F2FFF6; /* Custom Text Main */
  --text-secondary: #A7D9B8; /* Custom Text Secondary */
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  --border-color: #2E7A4E; /* Custom Border */
  --glow-color: #57E38D; /* Custom Glow */
  --gold-color: #F2C14E; /* Custom Gold */
  --divider-color: #1E3A2A; /* Custom Divider */
  --deep-green: #0A4B2C; /* Custom Deep Green */
}

.page-terms-conditions {
  background-color: var(--page-bg); /* Use custom background color */
  color: var(--text-main); /* Default text color for the page */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and content */
  box-sizing: border-box;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Enforce minimum size */
  min-width: 200px;
}

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

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: var(--gold-color); /* Use gold for main title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 1.1em;
  color: var(--text-secondary); /* Use secondary text color */
  margin-bottom: 30px;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  background: var(--button-gradient); /* Use custom button gradient */
  color: var(--text-main); /* White text on button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__content-area {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--card-bg); /* Use card background for content area */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
  box-sizing: border-box;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: var(--gold-color); /* Use gold for section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--divider-color); /* Use divider color for border */
  padding-bottom: 10px;
  font-weight: bold;
}

.page-terms-conditions__sub-title {
  font-size: 1.5em;
  color: var(--text-main); /* Use main text color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: var(--text-main); /* Ensure paragraph text is light */
}

.page-terms-conditions a {
  color: var(--glow-color); /* Use glow color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: var(--gold-color); /* Gold on hover */
}

.page-terms-conditions img:not(.page-terms-conditions__hero-image) {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--divider-color);
}

.page-terms-conditions__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-terms-conditions__faq-item {
  background-color: var(--deep-green); /* Use deep green for FAQ items */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-main); /* Light text for FAQ */
}

.page-terms-conditions__faq-item:hover {
  background-color: var(--deep-green);
  border-color: var(--glow-color);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main); /* Light text for question */
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: var(--gold-color); /* Gold for toggle icon */
}

.page-terms-conditions__faq-answer {
  padding-top: 10px;
  font-size: 0.95em;
  color: var(--text-secondary); /* Secondary text color for answer */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
}

.page-terms-conditions__faq-item summary {
  list-style: none; /* Remove default marker */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Disable text selection */
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker in WebKit browsers */
}

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

  .page-terms-conditions__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding */
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
  }

  .page-terms-conditions__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;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 1.2em;
  }

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

  /* Containers holding images */
  .page-terms-conditions__hero-image-wrapper,
  .page-terms-conditions__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* FAQ responsive */
  .page-terms-conditions__faq-item {
    padding: 12px 15px;
  }
  .page-terms-conditions__faq-question {
    font-size: 1em;
  }
}