/* style/terms-conditions.css */

/* --- General Styling --- */
.page-terms-conditions {
    background-color: var(--background-color, #08160F); /* Fallback to custom background color */
    color: var(--text-main, #F2FFF6); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom for spacing */
}

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

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background-color: var(--card-bg, #11271B); /* Using card background for hero */
    color: var(--text-main, #F2FFF6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px; /* Ensure a decent height */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: bold;
    color: var(--gold, #F2C14E); /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-terms-conditions__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

/* --- CTA Buttons --- */
.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-terms-conditions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    background: transparent;
    color: var(--gold, #F2C14E);
    border: 2px solid var(--gold, #F2C14E);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.3);
    margin-left: 20px; /* Spacing for multiple buttons */
}

.page-terms-conditions__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.5);
    transform: translateY(-2px);
}

/* --- Content Section --- */
.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F); /* Ensure consistent background */
    color: var(--text-main, #F2FFF6);
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: var(--gold, #F2C14E);
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: bold;
    border-bottom: 2px solid var(--divider, #1E3A2A);
    padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
    font-size: 1.6em;
    color: var(--text-main, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    color: var(--text-secondary, #A7D9B8);
}

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-secondary, #A7D9B8);
}

.page-terms-conditions__list-item {
    margin-bottom: 8px;
}

/* --- Image Styling --- */
.page-terms-conditions__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

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

.page-terms-conditions__faq-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* For details tag */
    color: var(--text-main, #F2FFF6); /* Ensure text is visible */
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-main, #F2FFF6);
    background-color: var(--deep-green, #0A4B2C); /* Slightly different background for summary */
    border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-terms-conditions__faq-question:hover {
    background-color: var(--deep-green, #0A4B2C); /* Keep hover subtle */
    color: var(--gold, #F2C14E);
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--gold, #F2C14E);
}

/* Styling for details tag */
.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X */
}

.page-terms-conditions__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-terms-conditions__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    border-top: 1px solid var(--divider, #1E3A2A);
}
.page-terms-conditions__faq-answer p:last-child {
    margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.4em;
    }
    .page-terms-conditions__hero-section {
        padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile, body handles header offset */
    }
    .page-terms-conditions__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-terms-conditions__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-terms-conditions__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
        margin-left: 0;
        margin-bottom: 10px;
    }
    .page-terms-conditions__cta-button:last-child {
        margin-bottom: 0;
    }

    /* If there are multiple buttons in a group, stack them */
    .page-terms-conditions__hero-content > a.page-terms-conditions__cta-button + a.page-terms-conditions__cta-button {
        margin-top: 10px;
    }

    .page-terms-conditions__content-section {
        padding: 40px 0;
    }
    .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-terms-conditions__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-terms-conditions p,
    .page-terms-conditions__list-item,
    .page-terms-conditions__faq-answer {
        font-size: 0.95em;
    }
    .page-terms-conditions__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
        margin: 20px auto;
    }
    .page-terms-conditions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-terms-conditions__faq-answer {
        padding: 15px;
    }
}