/* style/terms-conditions.css */

/* Variables for colors */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f8f8f8;
    --background-dark: #222222;
    --border-color: #e0e0e0;
}

.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-light);
}

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero/Banner Section */
.page-terms-conditions__hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color-light);
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--text-color-light); /* Ensure contrast */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__hero p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Main Content Section */
.page-terms-conditions__content {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-terms-conditions__content h2 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    font-weight: bold;
}

.page-terms-conditions__content h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-terms-conditions__content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-color-dark);
}

.page-terms-conditions__content ul {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-terms-conditions__content ul li {
    margin-bottom: 8px;
    color: var(--text-color-dark);
}

.page-terms-conditions__content strong {
    color: var(--secondary-color);
}

.page-terms-conditions__content a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__content a:hover {
    color: var(--primary-color);
}

/* CTA Wrapper */
.page-terms-conditions__cta-wrapper {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__cta-wrapper p {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: var(--text-color-dark);
}

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

.page-terms-conditions__cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-terms-conditions__faq {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-terms-conditions__faq h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-terms-conditions__faq h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: var(--text-color-dark);
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: var(--secondary-color);
    font-weight: 600;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background: #f9f9f9;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 0 5px 5px;
    color: var(--text-color-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 15px 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

/* Copyright Section */
.page-terms-conditions__copyright {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-terms-conditions__hero h1 {
        font-size: 2em;
    }

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

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

    .page-terms-conditions__content h2 {
        font-size: 1.7em;
        margin-top: 30px;
    }

    .page-terms-conditions__content h3 {
        font-size: 1.3em;
        margin-top: 25px;
    }

    .page-terms-conditions__cta-wrapper {
        padding: 30px 20px;
        margin-top: 40px;
    }

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

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

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

    .page-terms-conditions__faq h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .faq-question {
        padding: 12px 15px;
    }

    .faq-question h3 {
        font-size: 1em;
    }

    .faq-toggle {
        font-size: 20px;
    }

    .faq-answer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero {
        padding: 40px 0;
    }

    .page-terms-conditions__hero h1 {
        font-size: 1.8em;
    }

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

    .page-terms-conditions__content h2 {
        font-size: 1.5em;
    }
}