/* General styling for the Terms and Conditions page */
.page-terms-conditions {
    background-color: #F4F7FB; /* Background color */
    color: #1F2D3D; /* Main text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #2F6BFF; /* Main color for hero background */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-height: 400px; /* Limit height to prevent overly large hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Maintain aspect ratio */
}

.page-terms-conditions__hero-content {
    padding: 40px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-terms-conditions__main-title {
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
    /* No fixed font-size for H1, relying on responsive scaling and context */
    line-height: 1.2;
}

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

/* CTA Button */
.page-terms-conditions__cta-button,
.page-terms-conditions__contact-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.page-terms-conditions__cta-button:hover,
.page-terms-conditions__contact-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Content Section */
.page-terms-conditions__content-section {
    padding: 60px 20px;
}

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    border: 1px solid #D6E2FF; /* Border color */
}

.page-terms-conditions__article h2 {
    color: #2F6BFF; /* Main color for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: bold;
}

.page-terms-conditions__article h3 {
    color: #1F2D3D; /* Text Main color for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

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

.page-terms-conditions__image-text-block {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-terms-conditions__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-terms-conditions__content-image {
    width: 100%;
    max-width: 400px; /* Max width for content images */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0; /* Prevent image from shrinking too much */
}

.page-terms-conditions__text-content {
    flex-grow: 1;
}

.page-terms-conditions__full-width-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 40px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum height */
}

/* Specific button for contact section */
.page-terms-conditions__contact-button {
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-terms-conditions__hero-image-wrapper {
        max-height: 300px; /* Adjust hero image height for smaller screens */
    }

    .page-terms-conditions__hero-image {
        aspect-ratio: 16/7; /* More height on mobile */
    }

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

    .page-terms-conditions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* Clamp font size for H1 */
    }

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

    .page-terms-conditions__content-section {
        padding: 40px 15px;
    }

    .page-terms-conditions__container {
        padding: 25px;
    }

    .page-terms-conditions__article h2 {
        font-size: 1.6em;
    }

    .page-terms-conditions__article h3 {
        font-size: 1.2em;
    }

    .page-terms-conditions__image-text-block,
    .page-terms-conditions__image-text-block--reverse {
        flex-direction: column;
        gap: 20px;
    }

    .page-terms-conditions__content-image {
        max-width: 100%; /* Image takes full width in column layout */
    }
}

@media (max-width: 768px) {
    /* Critical rule for mobile content images to prevent overflow */
    .page-terms-conditions__content-section img,
    .page-terms-conditions__article img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 549px) {
    .page-terms-conditions__hero-image {
        aspect-ratio: 16/9; /* Even more height on very small screens */
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
}