/* =========================================
   LEGAL PAGE SPECIFIC STYLES
   ========================================= */

.legal-hero {
    padding: 7rem 1.5rem 2rem 1.5rem;
    display: flex;
    justify-content: center;
}

.legal-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Better spacing for mobile */
    max-width: 900px; 
    margin: 0 auto;
    padding: 1rem 1.5rem 5rem 1.5rem; /* Ensures the cards never touch the edges of the screen */
}

/* --- Mobile First Card Styling --- */
.legal-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem; /* Much smaller padding for mobile */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md); /* Ensures they have nice rounded corners */
    background: rgba(255, 255, 255, 0.03); /* Slightly softer glass effect */
}

/* Accent Borders */
.border-red { border-left: 4px solid #ef4444; }
.border-blue { border-left: 4px solid var(--accent-color); }
.border-green { border-left: 4px solid #10b981; }
.border-purple { border-left: 4px solid #8b5cf6; }

/* Scaled-down icons for mobile */
.legal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.legal-icon i {
    font-size: 1.5rem; /* Smaller icon for mobile */
}

.border-red .legal-icon i { color: #ef4444; }
.border-blue .legal-icon i { color: var(--accent-color); }
.border-green .legal-icon i { color: #10b981; }
.border-purple .legal-icon i { color: #8b5cf6; }

/* Typography scaled for mobile readability */
.legal-text h2 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.3;
}

.legal-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem; /* Slightly smaller text for narrow screens */
}

.legal-text p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.legal-list i {
    margin-top: 4px;
    color: var(--accent-color);
}

/* --- Desktop Adjustments (Expands the cards nicely) --- */
@media (min-width: 768px) {
    .legal-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 2.5rem; /* Gives back the generous breathing room on big screens */
        gap: 2rem;
    }
    
    .legal-icon {
        flex-shrink: 0; 
        width: 60px;
        height: 60px;
    }
    
    .legal-icon i {
        font-size: 2rem;
    }
    
    .legal-text h2 {
        font-size: 1.5rem;
    }
    
    .legal-text p, .legal-list li {
        font-size: 1rem;
    }
   }
