/* 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; /* Default text color for light background */
    background-color: #FFFFFF; /* Page background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-terms-conditions__hero-section {
    background-color: #f8f8f8; /* Light background for hero intro */
    padding: 60px 0;
    text-align: center;
}

.page-terms-conditions__main-title {
    font-size: 36px;
    color: #017439; /* Primary brand color for main title */
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: bold;
}

.page-terms-conditions__intro-text {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-terms-conditions__content-section {
    padding: 40px 0;
}

.page-terms-conditions__heading {
    font-size: 28px;
    color: #017439; /* Primary brand color for headings */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 0;
}

.page-terms-conditions__list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #444444;
}

.page-terms-conditions__list li strong {
    color: #017439; /* Emphasize list item titles */
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* FAQ Section Styles */
.page-terms-conditions__faq-section {
    margin-top: 40px;
}

.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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;
    color: #333333;
    pointer-events: none;
}

.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: #017439; /* Change color when active */
    transform: rotate(45deg); /* Plus sign rotates to X, or could be a minus */
}

.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.3s ease;
    padding: 0 15px;
    opacity: 0;
    background: #f9f9f9;
    color: #444444;
    font-size: 15px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-terms-conditions__faq-answer p {
    margin-bottom: 15px;
}

/* Buttons for FAQ answers */
.page-terms-conditions__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #E01010; /* Slightly darker red on hover */
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #017439; /* Primary brand color for secondary buttons */
    color: #FFFFFF; /* White text for contrast */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #005f2e; /* Slightly darker green on hover */
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 768px) {
    .page-terms-conditions {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding for header offset */
        font-size: 15px;
        line-height: 1.5;
    }

    .page-terms-conditions__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__hero-section {
        padding: 40px 15px;
    }

    .page-terms-conditions__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-terms-conditions__heading {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__list {
        margin-left: 15px;
    }

    .page-terms-conditions__list li {
        font-size: 15px;
    }

    .page-terms-conditions__image {
        margin: 20px auto;
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-terms-conditions__faq-question h3 {
        font-size: 15px;
    }

    .page-terms-conditions__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
    }

    /* Mobile button responsiveness */
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        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-top: 10px; /* Add some spacing between buttons if stacked */
    }
}

/* Ensure no image filters are used */
.page-terms-conditions img {
    filter: none !important;
}

/* Contrast fixes if needed - though primary design aims for contrast */
.page-terms-conditions__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-terms-conditions__light-bg {
    background-color: #ffffff;
    color: #333333;
}