/* style/terms-conditions.css */

/* Base styles for the page content */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Inherited from body, explicit for clarity */
}

.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;
    width: 100%;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    text-align: center;
    background-color: #017439; /* Primary brand color for hero background */
    color: #ffffff;
    overflow: hidden;
}

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

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

.page-terms-conditions__hero-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-terms-conditions__content-area {
    background-color: #0d0d0d; /* Slightly lighter dark background for content */
    color: #f0f0f0; /* Light text for readability */
    padding: 60px 0;
}

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

.page-terms-conditions__sub-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 35px;
    margin-bottom: 15px;
}

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

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
}

.page-terms-conditions__list-item::marker {
    color: #017439; /* Brand color for list item markers */
}

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

/* Links */
.page-terms-conditions a {
    color: #017439; /* Brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #005f2f; /* Darker shade on hover */
    text-decoration: underline;
}

/* CTA Button */
.page-terms-conditions__cta-wrapper {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.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: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #a10707; /* Darker red on hover */
    transform: translateY(-2px);
    color: #FFFF00;
    text-decoration: none;
}

/* Dark/Light Background classes for contrast (as per requirements) */
.page-terms-conditions__dark-bg {
    color: #ffffff; /* Deep dark background, light text */
    background: #000000;
}

.page-terms-conditions__light-bg {
    color: #333333; /* Light background, dark text (not used for this page content, but defined) */
    background: #ffffff;
}

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

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-terms-conditions__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-terms-conditions__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    .page-terms-conditions__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 1em;
        line-height: 1.7;
    }

    /* Mobile image responsive */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure containers prevent overflow */
    .page-terms-conditions__container,
    .page-terms-conditions__hero-section,
    .page-terms-conditions__content-area,
    .page-terms-conditions__cta-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* Mobile button responsive */
    .page-terms-conditions__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1.1em !important;
    }
    .page-terms-conditions__cta-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }

    .page-terms-conditions__section-title {
        font-size: 1.6em;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.2em;
    }
}