/* style/terms-conditions.css */

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

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

.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px; /* Adjust as needed */
}

.page-terms-conditions__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-terms-conditions__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #d16b05;
    border-color: #d16b05;
}

.page-terms-conditions__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #26A9E0; /* Brand primary color */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-terms-conditions__text-block {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-terms-conditions__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-terms-conditions__text-block a:hover {
    color: #1a7fb3;
}

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

/* FAQ Section */
.page-terms-conditions__faq-list {
    margin-top: 40px;
}

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

.page-terms-conditions__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-terms-conditions__faq-item summary:hover {
    background-color: #f0f0f0;
}

.page-terms-conditions__faq-qtext {
    flex-grow: 1;
    margin-right: 10px;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0; /* Brand primary color */
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
    padding: 20px;
    padding-top: 0;
    font-size: 1em;
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.4em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1.1em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-terms-conditions__hero-title {
        font-size: 2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-terms-conditions__content-area {
        padding: 40px 0;
    }
    .page-terms-conditions__container {
        padding: 0 15px;
    }
    .page-terms-conditions__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-terms-conditions__text-block {
        font-size: 0.95em;
        line-height: 1.6;
    }
    .page-terms-conditions__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }
    .page-terms-conditions__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-terms-conditions__faq-answer {
        padding: 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__hero-description {
        font-size: 0.95em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.4em;
    }
}

/* Specific contrast fixes if needed */
.page-terms-conditions__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-terms-conditions__light-bg {
  color: #333333; /* Light background with dark text */
}