/* Variables & Base Scope */
.legal_scope {
    --primary: #4C2A4F;
    --primary-light: #6B3E6F;
    --accent: #E8B4A8;
    --bg: #FFFFFF;
    --text-primary: #2D1F31;
    --text-secondary: #6B5B6F;
    --red-hat: "Red Hat Display", sans-serif;
    --montreal: "Neue Montreal", sans-serif;

    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* --- HERO SECTION (Matches Testimonials) --- */
.legal_scope .testimony.banner-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    padding: 100px 80px;
    margin-bottom: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Content to the left */
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: legalFadeInDown 0.8s ease-out;
}

/* Dark gradient overlay for text readability */
.legal_scope .testimony.banner-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to right, 
        rgba(25, 40, 50, 0.1) 0%, 
        rgba(25, 40, 50, 0.1) 50%, 
        rgba(25, 40, 50, 0.1) 100%
    );
    z-index: 1;
}

.legal_scope .banner-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-left: 20px;
}

.legal_scope .testimony h1 {
    font-family: var(--red-hat);
    font-size: 70px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.1;
}

/* --- LEGAL CONTENT STYLING --- */
.legal_scope .legal-container {
    max-width: 90%;
    margin: 60px auto;
    padding: 0 20px;
}

.legal_scope .legal-block {
    margin-bottom: 25px;
}

.legal_scope .legal-title {
    font-family: var(--red-hat);
    font-size: 40px;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.legal_scope .legal-block h3 {
    font-family: var(--red-hat);
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Wysiwyg / Text Editor Styling */
.legal_scope .legal-text-editor p {
    font-family: var(--montreal);
    font-size: 18px;
    color: #1c1c1c;
    margin-bottom: 20px;
}

.legal_scope .legal-text-editor ul, 
.legal_scope .legal-text-editor ol {
    font-family: var(--montreal);
    color: #1c1c1c;
    margin: 15px 0 25px;
    padding-left: 25px;
}

.legal_scope .legal-text-editor li {
    margin-bottom: 10px;
}
/* --- Container --- */
.legal-container {
    max-width: 1200px; /* Increased to allow room for split layout */
    margin: 0 auto;
    padding: 0 40px 80px;
}
/* --- The Magic: Split Layout Logic --- */
.legal-block.has-image {
    display: flex;
    align-items: center; /* Vertically centers text with image */
    gap: 60px;
    margin-bottom: 80px;
}

.legal-text-column {
    flex: 1; /* Takes up equal space */
}

.legal-image-column {
    flex: 1;
}

.legal-image-column img {
    width: 100%;
    height: auto;
    border-radius: 20px; /* Gives Vision/Careers a modern look */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.vision-text{
	font-size: 25px;
}
.terms{
	font-size: 25px;
    font-weight: 700;
}

/* --- RESPONSIVE DESIGN --- */

/* Tablet View */
@media (max-width: 1024px) {
    .legal_scope .testimony.banner-header {
        min-height: 450px;
        padding: 80px 40px;
    }
    
    .legal_scope .testimony h1 {
        font-size: 56px;
    }

    .legal_scope .legal-title {
        font-size: 32px;
    }
	.legal-block.has-image {
        gap: 40px;
    }
	.vision-text{
	font-size: 15px;
   }
}

/* Mobile View */
@media (max-width: 767px) {
	/* Stack image and text on mobile */
    .legal-block.has-image {
        flex-direction: column; 
        text-align: center;
        gap: 30px;
    }

    /* Move image to top on mobile for Vision/Careers */
    .legal-image-column {
        order: -1; 
    }
	
    .legal_scope .testimony.banner-header {
        min-height: 400px;
        padding: 60px 24px;
        text-align: center;
        justify-content: center; /* Center title on mobile */
    }

    .legal_scope .testimony.banner-header::before {
        /* More uniform overlay for centered mobile text */
        background: rgba(25, 40, 50, 0.8);
    }

    .legal_scope .banner-content {
        padding-left: 0;
    }

    .legal_scope .testimony h1 {
        font-size: 42px;
        text-align: center;
    }

    .legal_scope .legal-container {
        margin: 40px auto;
        padding: 0 20px;
        max-width: 100%;
    }

    .legal_scope .legal-title {
        font-size: 26px;
    }

    .legal_scope .legal-text-editor p {
        font-size: 14px;
		text-align: justify;
    }
	.vision-text{
		font-size: 14px;
   }
	.terms{
		font-size: 20px;
	}
}

/* Animations */
@keyframes legalFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}