:root {
    --fb777-primary-color: #F2C14E;
    --fb777-secondary-color: #FFD36B;
    --fb777-card-bg: #111111;
    --fb777-background: #0A0A0A;
    --fb777-text-main: #FFF6D6;
    --fb777-border-color: #3A2A12;
    --fb777-glow-color: #FFD36B;
    --fb777-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--fb777-text-main); /* Text Main for general content on dark background */
    background-color: var(--fb777-background); /* Body background is #0A0A0A */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    min-height: 500px;
    background-color: #0d0d0d; /* Slightly different dark shade for hero section background */
}

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtle background image */
}

.page-terms-conditions__hero-section > .page-terms-conditions__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: var(--fb777-primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Glow effect */
}

.page-terms-conditions__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--fb777-text-main);
}

/* CTA Buttons */
.page-terms-conditions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.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;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-terms-conditions__btn-primary {
    background: var(--fb777-button-gradient);
    color: var(--fb777-card-bg); /* Dark text on bright button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-terms-conditions__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    background-color: var(--fb777-card-bg); /* Card BG color */
    color: var(--fb777-primary-color); /* Primary color text */
    border: 2px solid var(--fb777-primary-color); /* Primary color border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__btn-secondary:hover {
    background-color: var(--fb777-primary-color);
    color: var(--fb777-card-bg);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
    transform: translateY(-2px);
}

.page-terms-conditions__cta-buttons--bottom {
    margin-top: 50px;
    margin-bottom: 30px;
}

/* General Content Sections */
.page-terms-conditions__section {
    padding: 50px 20px;
    background-color: var(--fb777-background);
    border-bottom: 1px solid var(--fb777-border-color); /* Border color */
}

.page-terms-conditions__section:last-of-type {
    border-bottom: none;
}

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for container */
    box-sizing: border-box;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: var(--fb777-primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 5px rgba(255, 211, 107, 0.3);
}

.page-terms-conditions__section-title:first-of-type {
    margin-top: 0;
}

.page-terms-conditions__paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--fb777-text-main);
}

.page-terms-conditions__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-terms-conditions__section--faq {
    background-color: var(--fb777-card-bg); /* Card BG for FAQ section */
}

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

.page-terms-conditions__faq-item {
    background-color: #1a1a1a; /* Slightly lighter dark for FAQ item background */
    border: 1px solid var(--fb777-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--fb777-primary-color);
    background-color: #1a1a1a;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: #222222;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

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

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

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--fb777-text-main);
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0;
}

.page-terms-conditions__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Links within content */
.page-terms-conditions a:not([class*="btn"]) {
    color: var(--fb777-secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions a:not([class*="btn"]):hover {
    color: var(--fb777-primary-color);
}


/* Responsive Design */
@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-terms-conditions__hero-section {
        padding: 40px 15px;
        padding-top: 10px; /* Small top padding, body handles --header-offset */
        min-height: 400px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Adjust for smaller screens */
        margin-bottom: 15px;
    }

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

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure button container takes full width */
        padding: 0 15px; /* Add padding to container */
        box-sizing: border-box;
    }

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

    .page-terms-conditions__section {
        padding: 30px 15px;
    }

    .page-terms-conditions__container {
        padding: 0; /* Remove inner padding on mobile as section has it */
    }

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

    .page-terms-conditions__paragraph {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    /* Images responsiveness */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Allow smaller images if they are content images that fit */
        min-height: unset;
    }
    
    .page-terms-conditions__content-image {
        margin: 20px auto;
    }

    /* FAQ responsiveness */
    .page-terms-conditions__faq-item {
        margin-bottom: 10px;
    }

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

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

    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}