/* style/terms-conditions.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E3B505;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --border-color: #e0e0e0;
    --background-light: #f1f3f5;
    --background-dark: #0a0a0a; /* Body background from shared.css */
}

.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--background-dark);
    padding-top: 120px; /* Space for fixed header on desktop */
}

@media (max-width: 768px) {
    .page-terms-conditions {
        padding-top: 100px; /* Space for fixed header on mobile */
    }
}

/* Hero Banner Section */
.page-terms-conditions__hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-bottom: 40px;
    color: var(--text-color-dark-bg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 250px;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-terms-conditions__hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color-dark-bg);
    line-height: 1.2;
}

.page-terms-conditions__hero-title .page-terms-conditions__hero-link {
    color: var(--text-color-dark-bg);
    text-decoration: none;
}

.page-terms-conditions__hero-title .page-terms-conditions__hero-link:hover {
    text-decoration: underline;
}

.page-terms-conditions__hero-description {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-color-dark-bg);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-banner {
        padding: 40px 15px;
        padding-bottom: 30px;
        min-height: 200px;
    }

    .page-terms-conditions__hero-title {
        font-size: 30px;
    }

    .page-terms-conditions__hero-description {
        font-size: 16px;
    }
}

/* General Content Section */
.page-terms-conditions__section {
    padding: 40px 20px;
    background-color: var(--background-dark);
}

.page-terms-conditions__content-area {
    background-color: var(--background-dark);
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #1a1a1a; /* Darker background for content blocks on dark body */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 40px;
    color: var(--text-color-dark-bg);
}

.page-terms-conditions__heading {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(227, 181, 5, 0.3);
    padding-bottom: 10px;
}

.page-terms-conditions__heading:first-of-type {
    margin-top: 0;
}

.page-terms-conditions__sub-heading {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color-dark-bg);
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-terms-conditions__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-color-dark-bg);
}

.page-terms-conditions__text-block ul {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-color-dark-bg);
}

.page-terms-conditions__text-block li {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--text-color-dark-bg);
}

.page-terms-conditions__text-link {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__text-link:hover {
    color: #ffcc00;
    text-decoration: none;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    background-color: var(--background-dark);
    padding-bottom: 60px;
}

.page-terms-conditions__faq-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 32px;
    font-weight: bold;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a; /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark-bg);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a; /* Dark background for question */
  border: 1px solid #333;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-terms-conditions__faq-question:hover {
  background: #222222;
  border-color: #555;
}

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

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-dark-bg);
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-terms-conditions__container {
        padding: 30px;
    }
    .page-terms-conditions__heading {
        font-size: 24px;
    }
    .page-terms-conditions__sub-heading {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__section {
        padding: 20px 15px;
    }

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

    .page-terms-conditions__heading {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__sub-heading {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .page-terms-conditions__text-block p,
    .page-terms-conditions__text-block li {
        font-size: 15px;
    }

    .page-terms-conditions__faq-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-terms-conditions__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-terms-conditions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-terms-conditions__faq-answer {
        padding: 0 15px;
    }
    
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__hero-banner {
      padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    }
}