/* style/terms-conditions.css */

/* Base styles for the page content, ensuring contrast with a potentially dark body background */
.page-terms-conditions {
    color: #ffffff; /* Default text color for the page, assuming dark shared body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Main content background will be handled by sections */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
    background-color: #26A9E0; /* Using brand primary color as a fallback/overlay base */
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly dim the image to ensure text readability */
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
}

.page-terms-conditions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-terms-conditions__intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* Explicitly white background for main content for contrast */
    color: #333333; /* Dark text for white background */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -40px; /* Overlap with hero slightly for visual flow */
    position: relative;
    z-index: 3;
}

.page-terms-conditions__section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for main titles */
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333333;
}

.page-terms-conditions__text-block p {
    margin-bottom: 15px;
    color: #333333;
}

.page-terms-conditions__text-block ul,
.page-terms-conditions__text-block ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: #333333;
}

.page-terms-conditions__text-block li {
    margin-bottom: 8px;
    color: #333333;
}

.page-terms-conditions__content-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);
}

/* Buttons */
.page-terms-conditions__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-terms-conditions__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #26A9E0;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #26A9E0;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Links within content */
.page-terms-conditions__content-area a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-terms-conditions__content-area a:hover {
    color: #1a7bb0;
}

/* Call to Action Section */
.page-terms-conditions__cta-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-top: 40px;
    color: #333333;
}

.page-terms-conditions__cta-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-terms-conditions__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Footer Note */
.page-terms-conditions__footer-note {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    color: #cccccc; /* Light grey for footer note on dark body background */
    background-color: transparent;
}

/* FAQ Section */
.page-terms-conditions__faq-list {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

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

.page-terms-conditions__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333333;
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-terms-conditions__faq-qtext {
    flex-grow: 1;
    color: #333333;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: #26A9E0;
}

.page-terms-conditions__faq-answer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    font-size: 1rem;
    color: #555555;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-terms-conditions__main-title {
        font-size: 2rem;
    }

    .page-terms-conditions__intro-text {
        font-size: 1rem;
    }

    .page-terms-conditions__content-area {
        padding: 20px 15px;
        margin-top: -20px; /* Adjust overlap for mobile */
    }

    .page-terms-conditions__section-title {
        font-size: 1.7rem;
        margin-top: 30px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.3rem;
        margin-top: 25px;
    }

    .page-terms-conditions p,
    .page-terms-conditions li {
        font-size: 1rem;
    }

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

    .page-terms-conditions__hero-image {
        height: 100% !important;
    }

    /* Buttons responsive */
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary,
    .page-terms-conditions a[class*="button"],
    .page-terms-conditions a[class*="btn"] {
        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;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }

    .page-terms-conditions__cta-section {
        padding: 30px 15px;
    }

    .page-terms-conditions__cta-title {
        font-size: 1.8rem;
    }

    .page-terms-conditions__cta-description {
        font-size: 1rem;
    }

    .page-terms-conditions__faq-item summary {
        font-size: 1rem;
        padding: 12px 15px;
    }

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

/* Dark background class for sections where brand color is used as background */
.page-terms-conditions__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Light background class for sections where white/light gray is used as background */
.page-terms-conditions__light-bg {
    background-color: #ffffff;
    color: #333333;
}