/* style/terms-conditions.css */
:root {
    --primary-color: #0056b3;
    --secondary-color: #ffc107;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-dark: #0a0a0a;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color-dark-mode: rgba(255, 255, 255, 0.2);
}

.page-terms-conditions {
    color: var(--text-color-light); /* Default to light text for dark body background */
    background-color: var(--background-dark);
    min-height: 100vh;
}

/* Fixed navigation bar spacing */
.page-terms-conditions__hero-section {
    padding-top: 180px; /* Desktop: Adjust based on actual fixed header height */
}

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

.page-terms-conditions__content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
}

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

.page-terms-conditions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-terms-conditions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-terms-conditions__main-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--text-color-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-terms-conditions__hero-description {
    font-size: 18px;
    color: var(--text-color-light);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-terms-conditions__highlight-text {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ffc107, #ffa500);
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button:hover {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__article-card {
    background: var(--card-bg-dark-mode);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color-dark-mode);
}

.page-terms-conditions__section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color-dark-mode);
}

.page-terms-conditions__article-card p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

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

.page-terms-conditions__inline-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-terms-conditions__inline-link:hover {
    color: #ff8c00;
    text-decoration: underline;
}

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

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

.page-terms-conditions__faq-main-title {
    font-size: 34px;
    font-weight: bold;
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 40px;
}

.page-terms-conditions__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color-dark-mode);
    background: var(--card-bg-dark-mode);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    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: rgba(255, 255, 255, 0.15);
}

.page-terms-conditions__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-light);
    pointer-events: none;
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 36px;
    }
    .page-terms-conditions__hero-description {
        font-size: 17px;
    }
    .page-terms-conditions__section-title {
        font-size: 26px;
    }
    .page-terms-conditions__article-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: 160px !important; /* Mobile: Adjust based on mobile fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-terms-conditions__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-terms-conditions__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-terms-conditions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-terms-conditions__content-section {
        padding: 40px 15px;
    }
    .page-terms-conditions__article-card {
        padding: 25px;
    }
    .page-terms-conditions__section-title {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-terms-conditions__article-card p {
        font-size: 15px;
        line-height: 1.7;
    }
    .page-terms-conditions__content-image {
        margin: 20px auto;
    }
    .page-terms-conditions__faq-section {
        padding: 40px 15px;
    }
    .page-terms-conditions__faq-main-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .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;
    }
    .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 {
        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: 24px;
    }
    .page-terms-conditions__hero-description {
        font-size: 14px;
    }
    .page-terms-conditions__cta-button {
        padding: 10px 25px;
        font-size: 15px;
    }
    .page-terms-conditions__section-title {
        font-size: 20px;
    }
    .page-terms-conditions__faq-main-title {
        font-size: 24px;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 15px;
    }
    .page-terms-conditions__faq-toggle {
        font-size: 22px;
    }
}