.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background is white */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles main offset */
    padding-bottom: 40px;
    background-color: #B71C1C; /* Background from custom palette */
    color: #FFF5E1; /* Text Main for dark background */
    text-align: center;
    overflow: hidden;
}

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

.page-terms-conditions__hero-content {
    max-width: 960px;
    margin: 20px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Ensure content is above any potential background effects */
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFF5E1; /* Text Main */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
}

.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;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: 2px solid #F2B544; /* Border from custom palette */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    background: #C91F17; /* Primary color */
    color: #FFF5E1; /* Text Main */
    border: 2px solid #E53935; /* Auxiliary color for border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-secondary:hover {
    background: #E53935; /* Auxiliary color */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: #ffffff; /* Explicitly white background for content */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    color: #C91F17; /* Primary color */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-terms-conditions__section-intro {
    font-size: 1.1em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
}

.page-terms-conditions__section-block {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}

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

.page-terms-conditions__sub-title {
    font-size: 1.8em;
    color: #C91F17; /* Primary color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions__text-block {
    font-size: 1em;
    color: #333333;
    margin-bottom: 15px;
}

.page-terms-conditions__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #333333;
}

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

.page-terms-conditions__list-item strong {
    color: #C91F17; /* Primary color */
}

.page-terms-conditions__link-privacy {
    color: #E53935; /* Auxiliary color */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-terms-conditions__link-privacy:hover {
    color: #C91F17; /* Primary color */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.page-terms-conditions__faq-list {
    max-width: 960px;
    margin: 30px auto;
    text-align: left;
}

.page-terms-conditions__faq-item {
    background-color: #D32F2F; /* Card BG from custom palette */
    color: #FFF5E1; /* Text Main */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #F2B544; /* Border from custom palette */
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #C91F17; /* Primary color for summary background */
    color: #FFF5E1; /* Text Main */
    border-bottom: 1px solid #E53935; /* Auxiliary color for border */
    list-style: none; /* Remove default marker for details summary */
}

.page-terms-conditions__faq-item[open] > .page-terms-conditions__faq-question {
    border-bottom: 1px solid #E53935;
}

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

.page-terms-conditions__faq-qtext {
    flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFD86A; /* Gold-like color for toggle icon */
}

.page-terms-conditions__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
    background-color: #D32F2F; /* Card BG */
}

.page-terms-conditions__faq-answer p {
    margin: 0;
    color: #FFF5E1; /* Text Main */
}

/* --- Responsive Design --- */

/* General image responsive styles */
.page-terms-conditions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General container responsive styles */
.page-terms-conditions__section,
.page-terms-conditions__card,
.page-terms-conditions__container,
.page-terms-conditions__section-block,
.page-terms-conditions__faq-item {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-terms-conditions__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 20px;
    }

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

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

    /* Buttons */
    .page-terms-conditions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Content Area */
    .page-terms-conditions__content-area {
        margin: 20px auto;
        padding: 0 15px; /* Adjust padding for mobile */
    }

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

    .page-terms-conditions__section-intro {
        font-size: 0.95em;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.5em;
    }

    .page-terms-conditions__text-block,
    .page-terms-conditions__list-item,
    .page-terms-conditions__faq-answer p {
        font-size: 0.9em;
    }

    /* FAQ Section */
    .page-terms-conditions__faq-list {
        padding: 0 15px;
    }

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

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

    /* Universal image and container sizing for mobile */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__section-block,
    .page-terms-conditions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}