/* style/terms-conditions.css */

/* --- Base Styles --- */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--dark-bg-1, #0d0d0d); /* Assuming shared.css defines --dark-bg-1 */
}

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

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 100px 0 60px; /* Adjust padding-top for header offset */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

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

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

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

.page-terms-conditions__btn-primary {
    display: inline-block;
    background-color: #EA7C07; /* Login color for CTA */
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

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

.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 */
}

/* --- Content Area --- */
.page-terms-conditions__content-area {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background for main content */
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for main titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-terms-conditions__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #EA7C07;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-terms-conditions__sub-title {
    font-size: 1.8em;
    color: #333333;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.page-terms-conditions__list-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-terms-conditions__list-item strong {
    color: #26A9E0;
}

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

.page-terms-conditions__content-area a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__content-area a:hover {
    color: #EA7C07; /* Login color on hover */
}


/* --- FAQ Section --- */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    background-color: var(--dark-bg-1, #0d0d0d); /* Dark background */
    color: #FFFFFF;
}

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

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
}

.page-terms-conditions__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #FFFFFF;
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Plus to X (or minus) */
    color: #26A9E0; /* Primary color when active */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.6em;
    }
    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item,
    .page-terms-conditions__faq-question {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 350px;
    }
    .page-terms-conditions__hero-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-terms-conditions__container {
        padding: 0 15px;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
    }
    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-terms-conditions__image {
        margin-left: 0;
        margin-right: 0;
    }

    /* Mobile container padding for overflow prevention */
    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-terms-conditions__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-terms-conditions__faq-title {
        font-size: 1.1em;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 10px 20px 20px;
    }
}