/* style/terms-conditions.css */

/* Base Styles for .page-terms-conditions to ensure light text on dark body background */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a1a; /* Inherit or explicitly set to match body */
}

/* Fixed header offset */
.page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Add some padding at the bottom */
    background: linear-gradient(135deg, #0A192F, #FFD700); /* Blend of primary and secondary colors */
    color: #ffffff;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-terms-conditions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.page-terms-conditions__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Use auxiliary color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__intro-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 800px; /* Constrain image width for better composition */
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.page-terms-conditions__hero-image:hover {
    transform: scale(1.02);
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Auxiliary color for CTA */
    color: #0A192F; /* Dark text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-terms-conditions__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #0A192F; /* Primary color as background for content */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff; /* Light text for dark background */
}

.page-terms-conditions__container {
    max-width: 960px;
    margin: 0 auto;
}

.page-terms-conditions__section-title {
    font-size: 32px;
    color: #FFD700; /* Auxiliary color for main titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
    font-weight: 700;
}

.page-terms-conditions__sub-title {
    font-size: 24px;
    color: #f0f0f0; /* Slightly off-white for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions__paragraph {
    font-size: 16px;
    margin-bottom: 15px;
    color: #cccccc; /* Lighter grey for paragraph text */
}

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

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

.page-terms-conditions__link {
    color: #FFD700; /* Auxiliary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-terms-conditions__contact-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1); /* Subtle background for contact info */
    border-left: 5px solid #FFD700;
    border-radius: 5px;
}

.page-terms-conditions__contact-info p {
    margin-bottom: 10px;
    font-size: 17px;
    color: #f0f0f0;
}

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

.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff; /* White background for question */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-terms-conditions__faq-question:active {
    background: #eeeeee;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333; /* Dark text */
}

.page-terms-conditions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    color: #0A192F; /* Primary color when active */
    transform: rotate(45deg); /* Optional: rotate for 'x' effect if using a single icon */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9; /* Light background for answer */
    color: #333333; /* Dark text for light background */
    border-radius: 0 0 8px 8px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    background: #f9f9f9;
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #333333; /* Dark text for light background */
}

/* Call to Action Section at the bottom */
.page-terms-conditions__cta-section {
    background: #FFD700; /* Auxiliary color for a strong CTA */
    padding: 60px 20px;
    text-align: center;
    color: #0A192F; /* Dark text for light background */
    margin-top: 40px;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-title {
    font-size: 38px;
    color: #0A192F; /* Primary color for title */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-terms-conditions__cta-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
    color: #333333; /* Dark text */
}

.page-terms-conditions__cta-button--large {
    padding: 18px 50px;
    font-size: 22px;
    border-radius: 10px;
    background: #0A192F; /* Primary color for button */
    color: #FFD700; /* Auxiliary color for button text */
    border: 2px solid #FFD700;
}

.page-terms-conditions__cta-button--large:hover {
    background: #1a2f4a; /* Slightly darker primary on hover */
    color: #FFD700;
    border-color: #e6c200;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 42px;
    }
    .page-terms-conditions__section-title {
        font-size: 28px;
    }
    .page-terms-conditions__sub-title {
        font-size: 22px;
    }
    .page-terms-conditions__cta-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__intro-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__hero-image-wrapper {
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .page-terms-conditions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-terms-conditions__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        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 {
        margin: 20px auto;
        padding: 25px 15px;
        border-radius: 8px;
    }

    .page-terms-conditions__container {
        padding: 0 10px;
    }

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

    .page-terms-conditions__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item,
    .page-terms-conditions__faq-answer p {
        font-size: 15px;
    }

    .page-terms-conditions__list {
        margin-left: 20px;
    }

    /* FAQ Mobile Styles */
    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
        border-radius: 6px;
    }

    .page-terms-conditions__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-terms-conditions__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

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

    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
        border-radius: 0 0 6px 6px;
    }

    .page-terms-conditions__cta-section {
        padding: 40px 15px;
        margin-top: 30px;
        border-radius: 8px;
    }

    .page-terms-conditions__cta-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__cta-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-terms-conditions__cta-button--large {
        padding: 15px 35px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General image and button container responsive rules */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__hero-container,
    .page-terms-conditions__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__main-title {
        font-size: 28px;
    }
    .page-terms-conditions__cta-title {
        font-size: 24px;
    }
    .page-terms-conditions__cta-button--large {
        font-size: 16px;
        padding: 12px 25px;
    }
}