/* style/terms-conditions.css */

/* Base Styles */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Body background is white, so dark text */
}

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

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand primary color */
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    line-height: 1.3;
}

.page-terms-conditions__sub-section-title {
    font-size: 1.5em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #333333; /* Ensure dark text on light background */
}

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

.page-terms-conditions__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333333; /* Ensure dark text on light background */
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-terms-conditions a {
    color: #017439; /* Brand primary color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-terms-conditions a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #009944); /* Gradient with brand primary */
    color: #FFFFFF; /* White text on dark background */
}

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

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

.page-terms-conditions__hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF; /* White text for hero title */
    line-height: 1.2;
    font-weight: 700;
}

.page-terms-conditions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for description */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
}

.page-terms-conditions__cta-button--register {
    background: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    margin-right: 15px;
}

.page-terms-conditions__cta-button--login {
    background: #C30808; /* Custom color for login */
    color: #FFFF00; /* Custom font color for login */
}

.page-terms-conditions__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Section */
.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background for content */
}

.page-terms-conditions__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text on dark background */
}

.page-terms-conditions__dark-bg .page-terms-conditions__section-title {
    color: #ffffff;
}

.page-terms-conditions__dark-bg p,
.page-terms-conditions__dark-bg li {
    color: #f0f0f0;
}

.page-terms-conditions__dark-bg a {
    color: #FFFF00; /* Yellow for links on dark background */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light grey background for FAQ */
}

.page-terms-conditions__faq-list {
    margin-top: 30px;
}

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

.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;
    background: #fdfdfd;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    border-top: 1px solid #e0e0e0;
}

.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: 5px;
    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: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-terms-conditions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Brand primary color for toggle icon */
    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-item.active .page-terms-conditions__faq-toggle {
    color: #C30808; /* Red when active */
    transform: rotate(180deg); /* Rotate for minus sign */
}

/* CTA Section at bottom */
.page-terms-conditions__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-terms-conditions__cta-section .page-terms-conditions__section-title {
    margin-bottom: 15px;
}

.page-terms-conditions__cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-section h1 {
        font-size: 2.8em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1.1em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions p, .page-terms-conditions__list li, .page-terms-conditions__faq-question h3 {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-terms-conditions__hero-section h1 {
        font-size: 2.2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        margin-right: 0;
        margin-bottom: 15px;
        width: 100% !important;
        max-width: 100% !important;
    }
    .page-terms-conditions__cta-section .page-terms-conditions__cta-button {
        display: block; /* Stack buttons vertically */
        margin-left: auto;
        margin-right: auto;
    }
    .page-terms-conditions__cta-button--register {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .page-terms-conditions__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-terms-conditions__content-section, .page-terms-conditions__faq-section, .page-terms-conditions__cta-section {
        padding: 40px 0;
    }
    .page-terms-conditions__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .page-terms-conditions__sub-section-title {
        font-size: 1.3em;
    }
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
    }
    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 1em;
        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;
    }
    .page-terms-conditions__cta-section p {
        font-size: 1em;
    }
}