/* style/terms-conditions.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark-1: #0d0d0d; /* Assuming dark background for body from shared.css */
}

.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default to light text for dark body background */
    line-height: 1.6;
    background-color: var(--bg-dark-1);
}

.page-terms-conditions__intro-section {
    padding: 120px 20px 60px; /* Adjusted padding-top for fixed header */
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #2a4b87);
    color: var(--text-light);
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-terms-conditions__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: bold;
}

.page-terms-conditions__intro-text {
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-terms-conditions__intro-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

.page-terms-conditions__content-section {
    padding: 60px 20px;
}

.page-terms-conditions__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-terms-conditions__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

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

.page-terms-conditions__card h2.page-terms-conditions__section-title {
    color: var(--primary-color);
}

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

.page-terms-conditions__card p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

.page-terms-conditions__card li {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.page-terms-conditions__card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-terms-conditions__card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-terms-conditions__content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-terms-conditions__section-title--white {
    color: var(--text-light);
    border-bottom-color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-terms-conditions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    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;
}

.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: 17px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-terms-conditions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: 28px;
    height: 28px;
}

.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 15px;
    opacity: 0;
    color: var(--text-dark);
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to accommodate content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    color: var(--primary-color);
    transform: rotate(0deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
    .page-terms-conditions__card h3 {
        font-size: 1.4em;
    }
    .page-terms-conditions__card p,
    .page-terms-conditions__card li {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__intro-section {
        padding-top: 100px !important; /* Mobile padding-top for fixed header */
        padding-bottom: 40px;
    }
    .page-terms-conditions__main-title {
        font-size: 2.2em;
        line-height: 1.2;
    }
    .page-terms-conditions__intro-text {
        font-size: 1em;
    }
    .page-terms-conditions__content-section {
        padding: 40px 15px;
    }
    .page-terms-conditions__card {
        padding: 25px;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-terms-conditions__card h3 {
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .page-terms-conditions__card p,
    .page-terms-conditions__card li {
        font-size: 0.95em;
    }
    .page-terms-conditions__intro-image,
    .page-terms-conditions__content-image {
        border-radius: 8px;
    }

    /* FAQ Responsive */
    .page-terms-conditions__faq-section {
        padding: 40px 15px;
    }
    .page-terms-conditions__section-title--white {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
        border-radius: 6px;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-terms-conditions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 15px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
    }

    /* General image responsiveness for all images within .page-terms-conditions */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-terms-conditions__container,
    .page-terms-conditions__card,
    .page-terms-conditions__intro-section,
    .page-terms-conditions__content-section,
    .page-terms-conditions__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-terms-conditions__intro-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-terms-conditions__intro-image {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-terms-conditions__faq-list {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}