/* style/terms-conditions.css */

/* --- General Page Styling --- */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: var(--secondary-color, #FFFFFF); /* Body background from shared.css */
    padding-bottom: 60px;
}

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

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

.page-terms-conditions__subsection-heading {
    font-size: 1.6em;
    color: #333333;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions__paragraph {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-terms-conditions a {
    color: #26A9E0; /* Primary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #EA7C07; /* Login color as hover for contrast */
    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); /* Ensures content is not hidden by fixed header */
    background-color: #f0f8ff; /* Light blue background for hero */
    border-bottom: 5px solid #26A9E0;
}

.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-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-terms-conditions__main-title {
    font-size: 3.2em;
    color: #000000; /* Dark text for contrast */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-terms-conditions__description {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Content Area --- */
.page-terms-conditions__content-area {
    padding: 60px 0;
    background-color: #FFFFFF; /* White background for content */
}

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

/* --- Call to Action (CTA) --- */
.page-terms-conditions__cta-wrapper {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color: #f0f8ff; /* Light blue background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__cta-text {
    font-size: 1.4em;
    color: #333333;
    margin-bottom: 25px;
    font-weight: 500;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-terms-conditions__cta-button:hover {
    background: #EA7C07; /* Login color for hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.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;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px !important;
    opacity: 1;
    background: #eef8ff; /* Very light blue for expanded answer */
    border-radius: 0 0 8px 8px;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    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: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-terms-conditions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0; /* Primary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    color: #EA7C07; /* Login color when active */
    transform: rotate(45deg); /* Rotate to show 'x' or 'minus' */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__description {
        font-size: 1.2em;
    }
    .page-terms-conditions__section-heading {
        font-size: 2em;
    }
    .page-terms-conditions__subsection-heading {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-terms-conditions__hero-image {
      margin-bottom: 20px;
      border-radius: 8px;
    }

    .page-terms-conditions__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }

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

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

    .page-terms-conditions__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__section-heading {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__subsection-heading {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 10px;
    }

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

    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section {
        padding: 40px 0;
    }

    .page-terms-conditions__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 30px auto;
        border-radius: 6px;
    }

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

    .page-terms-conditions__cta-text {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    /* Mobile button specific styles */
    .page-terms-conditions__cta-button {
        padding: 15px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Mobile */
    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-terms-conditions__faq-question h3 {
        font-size: 1em;
        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;
    }

    /* Ensure all image containers are responsive */
    .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;
    }
}