/* style/terms-conditions.css */

.page-terms-conditions {
    padding-top: var(--header-offset, 120px); /* Ensure content starts below the fixed header */
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Ensure consistency with body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF; /* White text for hero content over image */
    text-align: center;
    display: flex; /* Use flexbox to center content */
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure hero section has a minimum height */
    padding: 0; /* No direct padding here, content handles it */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%; /* Make image fill the hero section height */
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px; /* Vertical padding for content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-terms-conditions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-terms-conditions__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #000000; /* Dark title for light background */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FCBC45; /* Gold accent */
    padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #333333;
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 30px;
    margin-bottom: 20px;
    color: #333333;
}

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

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

/* General Buttons */
.page-terms-conditions__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Specific Button Styles */
.page-terms-conditions__button--register,
.page-terms-conditions__button--join-now {
    background-color: #FFFFFF; /* White button background */
    color: #000000; /* Dark text for white button */
}

.page-terms-conditions__button--register:hover,
.page-terms-conditions__button--join-now:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.page-terms-conditions__button--login {
    background-color: #FCBC45; /* Gold button background */
    color: #000000; /* Dark text for gold button */
}

.page-terms-conditions__button--login:hover {
    background-color: #e6a73c;
    transform: translateY(-2px);
}

.page-terms-conditions__button--support {
    background-color: #000000; /* Black button background */
    color: #FFFFFF; /* White text for black button */
}

.page-terms-conditions__button--support:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* CTA Section */
.page-terms-conditions__cta-section {
    background-color: #000000; /* Black background for CTA */
    color: #FFFFFF;
    padding: 80px 20px;
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center; /* Center text on mobile */
}

.page-terms-conditions__cta-content {
    max-width: 800px;
}

.page-terms-conditions__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FCBC45; /* Gold title for black background */
}

.page-terms-conditions__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #FFFFFF;
}

.page-terms-conditions__cta-image {
    max-width: 600px;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
    .page-terms-conditions__cta-section {
        flex-direction: row; /* Side-by-side on desktop */
        text-align: left; /* Align text left on desktop */
        padding: 100px 40px;
    }

    .page-terms-conditions__cta-content {
        flex: 1; /* Allow content to grow */
        margin-right: 40px; /* Space between content and image */
    }

    .page-terms-conditions__cta-image {
        flex-shrink: 0; /* Prevent image from shrinking too much */
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-terms-conditions__hero-content {
        padding: 80px 15px;
        min-height: 400px;
    }

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

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

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

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

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 0.95em;
    }

    /* Mobile content image constraint to prevent overflow */
    .page-terms-conditions__content-area img,
    .page-terms-conditions__cta-image {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

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

    .page-terms-conditions__cta-description {
        font-size: 1.1em;
    }
}