/* style/terms-conditions.css */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    padding-bottom: 50px; /* Space for footer */
}

.page-terms-conditions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Desktop header offset */
    background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main and Accent color gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Max height for hero image */
    object-fit: cover;
    display: block;
}

.page-terms-conditions__hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding: 20px 15px 40px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: bold;
    color: #0A0A0A; /* Dark text for light gradient background */
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-terms-conditions__hero-description {
    font-size: clamp(1em, 2vw, 1.2em);
    color: #333333; /* Darker text for readability on light background */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6; /* Text Main */
}

.page-terms-conditions__container {
    max-width: 100%;
    margin: 0 auto;
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #F2C14E; /* Main color for titles */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-terms-conditions__sub-title {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    color: #FFD36B; /* Accent color for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-terms-conditions__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
    color: #FFF6D6; /* Text Main */
}

.page-terms-conditions__paragraph a {
    color: #FFD36B; /* Accent color for links */
    text-decoration: underline;
}

.page-terms-conditions__paragraph a:hover {
    color: #F2C14E; /* Main color on link hover */
}

.page-terms-conditions__image-wrapper {
    margin: 30px 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-terms-conditions__cta-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #0A0A0A; /* Dark text on light button */
    border: 2px solid transparent;
}

.page-terms-conditions__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 0 15px #FFD36B; /* Glow */
}

.page-terms-conditions__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E; /* Main color for text */
    border: 2px solid #3A2A12; /* Border color */
}

.page-terms-conditions__btn-secondary:hover {
    background: #F2C14E; /* Main color */
    color: #0A0A0A; /* Dark text on main color */
    border-color: #F2C14E;
}

/* FAQ Section Styling */
.page-terms-conditions__faq-list {
    margin-top: 40px;
    border-top: 1px solid #3A2A12; /* Border */
}

.page-terms-conditions__faq-item {
    border-bottom: 1px solid #3A2A12; /* Border */
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #FFF6D6; /* Text Main */
    transition: color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    color: #F2C14E; /* Main color on hover */
}

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

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
    color: #F2C14E; /* Main color when active */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main */
    font-size: 0.95em;
    line-height: 1.7;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value for content */
    padding: 15px 15px 20px; /* Adjust padding when active */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-terms-conditions__hero-content-wrapper {
        padding: 15px 10px 30px;
    }

    .page-terms-conditions__main-title {
        font-size: 2em;
    }

    .page-terms-conditions__hero-description {
        font-size: 0.95em;
    }

    .page-terms-conditions__content-area {
        padding: 20px 15px;
    }

    .page-terms-conditions__section-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.2em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-terms-conditions__image-wrapper,
    .page-terms-conditions__container,
    .page-terms-conditions__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__cta-wrapper {
        flex-direction: column; /* Stack buttons vertically on mobile */
        align-items: stretch;
        gap: 15px;
        padding: 0 15px;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__faq-question {
        font-size: 1em;
        padding: 15px 0;
    }

    .page-terms-conditions__faq-toggle {
        font-size: 1.2em;
    }

    .page-terms-conditions__faq-answer {
        padding: 10px 15px 15px;
    }
}