.page-terms-conditions {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000; /* Custom Color_1776249996415 */
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    
    background-color: var(--page-bg);
    color: var(--text-main);
    font-family: Arial, sans-serif;
}

.page-terms-conditions__hero-section {
    background-color: var(--primary-color);
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    color: var(--card-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-height: 400px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-terms-conditions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--card-bg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-terms-conditions__content-section {
    padding: 40px 20px;
    background-color: var(--page-bg);
}

.page-terms-conditions__container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__article {
    line-height: 1.7;
    font-size: 1rem;
}

.page-terms-conditions__heading {
    font-size: 1.8rem;
    color: var(--text-black);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions__paragraph {
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-terms-conditions__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-terms-conditions__list-item {
    margin-bottom: 8px;
    color: var(--text-main);
}

.page-terms-conditions__image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-terms-conditions__contact-link:hover {
    text-decoration: underline;
}

.page-terms-conditions__cta-wrapper {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.page-terms-conditions__cta-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 20px;
}

.page-terms-conditions__cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: var(--button-gradient);
    color: var(--card-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px var(--glow-color);
    border: none;
    cursor: pointer;
}

.page-terms-conditions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-terms-conditions__hero-image-wrapper {
        max-height: 250px;
    }

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

    .page-terms-conditions__intro-text {
        font-size: 1rem;
    }

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

    .page-terms-conditions__heading {
        font-size: 1.5rem;
        margin-top: 25px;
    }

    .page-terms-conditions__paragraph,
    .page-terms-conditions__list-item {
        font-size: 0.95rem;
    }

    .page-terms-conditions__image {
        max-width: 100%;
        height: auto;
        margin: 20px auto;
    }
    
    .page-terms-conditions__cta-text {
        font-size: 1.1rem;
    }

    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-section {
        padding-bottom: 30px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

    .page-terms-conditions__heading {
        font-size: 1.3rem;
    }

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

/* Ensure images in content area are not too small on mobile */
@media (max-width: 768px) {
    .page-terms-conditions__article img {
        max-width: 100%;
        height: auto;
    }
    /* Enforcing minimum display size for content images */
    .page-terms-conditions__article img:not([width="32"]):not([width="40"]):not([width="48"]):not([width="60"]):not([width="64"]):not([width="80"]):not([width="100"]) {
        min-width: 200px;
        min-height: 200px;
        object-fit: cover; /* Ensures image fills the min-size without distortion */
    }
}

/* Image CSS with HTML width/height consistency check */
.page-terms-conditions__hero-image[width="1200"][height="675"] {
    /* This CSS matches the HTML attributes for the hero image's display area */
    width: 100%; /* Will scale down from 1200px to fill container */
    height: auto; /* Maintain aspect ratio */
}

.page-terms-conditions__image[width="800"][height="600"] {
    /* This CSS matches the HTML attributes for general content images */
    width: 100%; /* Will scale down from 800px to fill container */
    height: auto; /* Maintain aspect ratio */
}