/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Header offset for main content */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    height: 60vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-terms-conditions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-terms-conditions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold accent for title */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-terms-conditions__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1A202C; /* Dark background for content sections */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: #f0f0f0; /* Light text on dark background */
}

.page-terms-conditions__container {
    max-width: 100%;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #FFD700; /* Gold accent for section titles */
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

.page-terms-conditions h3 {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-terms-conditions__text-link {
    color: #FFD700; /* Gold color for links */
    text-decoration: underline;
}

.page-terms-conditions__text-link:hover {
    color: #e6c200;
    text-decoration: none;
}

.page-terms-conditions ul,
.page-terms-conditions ol {
    margin-bottom: 20px;
    padding-left: 30px;
    color: #e0e0e0;
}

.page-terms-conditions li {
    margin-bottom: 10px;
}

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

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #1A202C; /* Dark text on gold */
    border: 2px solid #FFD700;
}

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

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

.page-terms-conditions__cta-bottom {
    margin-top: 60px;
    padding: 40px;
    background-color: #2A303C; /* Slightly lighter dark background */
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-text {
    font-size: 1.3em;
    margin-bottom: 25px;
    color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1.1em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        height: 50vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies on mobile */
    }
    .page-terms-conditions__hero-title {
        font-size: 2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 90%;
        margin: 5px 0;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-terms-conditions__content-area {
        padding: 30px 15px;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions h3 {
        font-size: 1.5em;
    }
    .page-terms-conditions__text-block,
    .page-terms-conditions li {
        font-size: 0.95em;
    }
    .page-terms-conditions__cta-bottom {
        padding: 30px 20px;
    }
    .page-terms-conditions__cta-text {
        font-size: 1.1em;
    }

    /* Mobile responsive images */
    .page-terms-conditions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure content containers don't overflow */
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__hero-section,
    .page-terms-conditions__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific rule for content images to ensure they don't cause overflow */
    .page-terms-conditions__image-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.5em;
    }
    .page-terms-conditions__hero-description {
        font-size: 0.9em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.5em;
    }
    .page-terms-conditions h3 {
        font-size: 1.3em;
    }
    .page-terms-conditions__text-block {
        font-size: 0.9em;
    }
    .page-terms-conditions__cta-text {
        font-size: 1em;
    }
}

/* Ensure content area images are not scaled down below 200px by CSS rules */
/* This rule applies to any img within .page-terms-conditions */
.page-terms-conditions img:not(.page-terms-conditions__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific rule to ensure image display size is not overridden to be smaller than 200px */
.page-terms-conditions__image-content {
    width: auto;
    height: auto;
}

/* Override for image display size in mobile if needed, but not to shrink below 200px if possible */
@media (max-width: 768px) {
    .page-terms-conditions__image-content {
        min-width: unset !important; /* Allow smaller on mobile if max-width: 100% makes it smaller */
        min-height: unset !important;
    }
}

/* No filter CSS properties on images */
.page-terms-conditions img {
    filter: none; /* Ensure no CSS filters are applied */
}