/* style/terms-conditions.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #1E90FF;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --button-hover-dark: #ccad00;
    --button-hover-light: #187bcd;
}

.page-terms-conditions {
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: transparent; /* Assuming body background is set by shared.css var(--dark-bg-1) */
}

/* Fixed navigation bar spacing */
.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-top: 180px; /* Desktop: Adjust based on actual fixed header height */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color-dark-bg);
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

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

.page-terms-conditions__hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-terms-conditions__cta-button:hover {
    background: var(--button-hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__cta-button--secondary {
    background: var(--secondary-color);
}

.page-terms-conditions__cta-button--secondary:hover {
    background: var(--button-hover-light);
}

.page-terms-conditions__content-section {
    padding: 60px 20px;
    background-color: #f1f3f5; /* Light background for main content area */
    color: var(--text-color-light-bg);
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-terms-conditions__article-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    line-height: 1.7;
    color: var(--text-color-light-bg);
}

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

.page-terms-conditions__article-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color-light-bg);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions__article-card p {
    font-size: 16px;
    margin-bottom: 15px;
}

.page-terms-conditions__article-card ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-terms-conditions__article-card li {
    font-size: 16px;
    margin-bottom: 10px;
}

.page-terms-conditions__article-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

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

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

.page-terms-conditions__call-to-action {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(90deg, #ffed4a, #ffd700);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-terms-conditions__call-to-action p {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color-light-bg);
    margin-bottom: 25px;
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    margin-top: 60px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
    text-align: center;
    margin-top: 0;
    color: var(--secondary-color);
}

.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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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(--secondary-color);
  transform: rotate(45deg); /* Rotate to form an 'X' or similar for close */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 36px;
    }
    .page-terms-conditions__hero-description {
        font-size: 16px;
    }
    .page-terms-conditions__section-title {
        font-size: 28px;
    }
    .page-terms-conditions__article-card h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust based on mobile fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-terms-conditions__hero-content {
        padding: 15px;
    }
    .page-terms-conditions__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-terms-conditions__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-terms-conditions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-terms-conditions__content-section {
        padding: 30px 15px;
    }
    .page-terms-conditions__article-card {
        padding: 25px;
    }
    .page-terms-conditions__section-title {
        font-size: 24px;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-terms-conditions__article-card h3 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-terms-conditions__article-card p,
    .page-terms-conditions__article-card li {
        font-size: 15px;
    }
    .page-terms-conditions__image {
        margin: 20px auto;
    }
    .page-terms-conditions__call-to-action {
        padding: 20px;
        margin-top: 40px;
    }
    .page-terms-conditions__call-to-action p {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .page-terms-conditions__faq-section {
        padding: 25px;
        margin-top: 40px;
    }
    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 15px;
        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 */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-terms-conditions__container,
    .page-terms-conditions__article-card,
    .page-terms-conditions__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-terms-conditions__hero-banner,
    .page-terms-conditions__content-section {
        padding-left: 0;
        padding-right: 0;
    }
}