/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
    color: #333333; /* Dark text for default light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px 40px; /* Adjust padding to ensure content is not too close to top/bottom */
    background-color: #f8f8f8; /* Light background for hero section */
    text-align: center;
    overflow: hidden; /* To contain the image if it overflows slightly */
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1; /* Subtle background image */
}

.page-terms-conditions__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    display: block;
}

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

.page-terms-conditions__main-title {
    font-size: 2.8em;
    color: #8B0000; /* Deep red for main title */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

.page-terms-conditions__register-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Deep red text for contrast */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__register-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: #6a0000;
}

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

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #8B0000; /* Deep red for section titles */
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #FFD700; /* Gold underline */
    padding-bottom: 15px;
}

.page-terms-conditions__term-item {
    margin-bottom: 30px;
    background-color: #ffffff; /* White background for term items */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-terms-conditions__term-heading {
    font-size: 1.6em;
    color: #FFD700; /* Gold for term headings */
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-terms-conditions__paragraph a {
    color: #8B0000; /* Deep red for internal links */
    text-decoration: underline;
    font-weight: bold;
}

.page-terms-conditions__paragraph a:hover {
    color: #FFD700; /* Gold on hover */
}

.page-terms-conditions__action-button {
    display: inline-block;
    background-color: #8B0000; /* Deep red button */
    color: #ffffff; /* White text for contrast */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__action-button:hover {
    background-color: #a30000; /* Slightly lighter red on hover */
}

/* Call to Action Section */
.page-terms-conditions__call-to-action {
    text-align: center;
    background-color: #fdf5e6; /* Light golden background */
    padding: 50px 20px;
    margin-top: 50px;
    border-radius: 10px;
    border: 1px dashed #FFD700;
}

.page-terms-conditions__cta-text {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 30px;
    font-weight: 500;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #8B0000; /* Deep red text */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: #6a0000;
}

.page-terms-conditions__cta-button--login {
    background-color: #8B0000; /* Deep red for login button */
    color: #ffffff; /* White text */
}

.page-terms-conditions__cta-button--login:hover {
    background-color: #a30000; /* Slightly lighter red on hover */
    color: #ffffff;
}

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

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

    .page-terms-conditions__intro-text {
        font-size: 1em;
    }

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

    .page-terms-conditions__term-heading {
        font-size: 1.4em;
    }

    .page-terms-conditions__term-item {
        padding: 15px;
    }

    .page-terms-conditions__register-button,
    .page-terms-conditions__cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-terms-conditions__cta-button {
        margin: 10px 5px;
    }

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

    /* Mobile image constraint */
    .page-terms-conditions__hero-image img,
    .page-terms-conditions__content-area img { /* Selects all images in content area */
        max-width: 100%;
        height: auto;
    }

    /* Ensure no content causes horizontal scroll */
    .page-terms-conditions__content-area {
        padding: 20px 15px;
        overflow-x: hidden;
    }

    .page-terms-conditions__call-to-action {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__main-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__cta-button {
        display: block;
        margin: 10px auto;
    }
}