/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #FFFFFF; /* Default body background is white */
    overflow-x: hidden; /* Prevent horizontal scroll for the whole page */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px;
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* For image positioning */
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-terms-conditions__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-terms-conditions__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-terms-conditions__btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Important for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__btn--primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

.page-terms-conditions__btn--secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color for secondary CTA text */
    border: 2px solid #26A9E0;
}

.page-terms-conditions__btn--secondary:hover {
    background-color: #f0f0f0;
    color: #26A9E0;
    border-color: #26A9E0;
}

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

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* Subtle overlay */
}

/* General Section Styling */
.page-terms-conditions__section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-terms-conditions__section:last-of-type {
    border-bottom: none;
}

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

.page-terms-conditions__heading {
    font-size: 2.2em;
    color: #26A9E0; /* Primary brand color */
    margin-bottom: 30px;
    text-align: center;
}

.page-terms-conditions__sub-heading {
    font-size: 1.6em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-terms-conditions__paragraph {
    font-size: 1.05em;
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333333;
}

/* Table of Contents */
.page-terms-conditions__table-of-contents {
    background-color: #f8f8f8;
    padding: 40px 0;
}

.page-terms-conditions__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.page-terms-conditions__toc-list li {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-terms-conditions__toc-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__toc-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #26A9E0; /* Primary brand color */
    font-weight: bold;
    font-size: 1.05em;
}

.page-terms-conditions__toc-link:hover {
    color: #EA7C07; /* Login color on hover */
}

/* Content Area Images */
.page-terms-conditions__content-image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Example max width for content images */
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    background-color: #f0f7ff; /* Light blue tint */
}

.page-terms-conditions__faq-list {
    margin-top: 40px;
}

.page-terms-conditions__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-title {
    margin: 0;
    font-size: 1.1em; /* Ensure title size is appropriate */
    color: #26A9E0;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #EA7C07; /* Login color for toggle */
    transition: transform 0.3s ease;
}

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

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
}

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

.page-terms-conditions__faq-answer .page-terms-conditions__paragraph {
    margin-bottom: 0;
    color: #333333;
}

/* CTA Section */
.page-terms-conditions__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-terms-conditions__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    padding: 60px 30px;
    border-radius: 12px;
}

.page-terms-conditions__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-terms-conditions__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #FFFFFF;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.5em;
    }
    .page-terms-conditions__heading {
        font-size: 2em;
    }
    .page-terms-conditions__sub-heading {
        font-size: 1.4em;
    }
    .page-terms-conditions__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-terms-conditions__hero-title {
        font-size: 2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__section {
        padding: 40px 0;
    }
}