.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 80px 20px;
    background-color: #017439; /* Brand color for hero */
    overflow: hidden;
}

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

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make image subtle behind text */
    filter: brightness(0.6); /* Darken image for better text contrast */
}

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

.page-terms-conditions__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

.page-terms-conditions__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: transparent; /* Content background should be transparent to show body background */
    color: #ffffff; /* Text color for content area */
}

.page-terms-conditions__container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for sections on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand color for main section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(1, 116, 57, 0.5);
    padding-bottom: 10px;
    font-weight: bold;
}

.page-terms-conditions__sub-section-title {
    font-size: 1.6em;
    color: #ffffff; /* White for sub-section titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-terms-conditions__text-block {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #f0f0f0; /* Light grey for paragraph text */
}

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

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

.page-terms-conditions__text-link {
    color: #00bfff; /* A distinct color for links for visibility */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__text-link:hover {
    color: #0099cc;
}

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

/* FAQ Section Styling */
.page-terms-conditions__faq-list {
    margin-top: 30px;
}

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(1, 116, 57, 0.8); /* Brand color for question background */
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: rgba(1, 116, 57, 1);
}

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

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-question {
    background-color: #017439; /* Keep brand color when open */
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
    content: "−"; /* Change icon when open */
}

.page-terms-conditions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05em;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for answer background */
}

/* For details/summary, hide default marker */
.page-terms-conditions__faq-item summary {
    list-style: none;
}
.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-terms-conditions {
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-terms-conditions__hero-title {
        font-size: 2em;
    }

    .page-terms-conditions__hero-description {
        font-size: 1em;
    }

    .page-terms-conditions__btn-primary {
        padding: 12px 25px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-terms-conditions__content-area {
        padding: 20px 15px;
    }

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

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

    .page-terms-conditions__sub-section-title {
        font-size: 1.4em;
        margin-top: 25px;
    }

    .page-terms-conditions__text-block,
    .page-terms-conditions__list-item {
        font-size: 1em;
    }

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

    .page-terms-conditions__hero-image-wrapper,
    .page-terms-conditions__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FAQ */
    .page-terms-conditions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

/* Ensure no filter on images */
.page-terms-conditions img {
    filter: none; /* Explicitly remove any default filters */
}

/* Ensure content area images are not too small */
.page-terms-conditions__image-content {
    min-width: 200px;
    min-height: 200px;
}