/* --- CSS RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

/* --- NAVIGATION --- */
header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1e293b;
    text-decoration: none;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    color: #1e293b;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto 2rem auto;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* --- IMAGE SCALING FIX --- */
.hero-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Max width on large screens */
    margin-top: 50px;
    min-width: 0;      /* Forces flex children to shrink */
    padding: 0 10px;
}

.hero-image {
    display: block;
    width: 100%;       /* Scalable width */
    max-width: 100%;   /* Never exceed container */
    height: auto;      /* Maintain aspect ratio */
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
}


/* style.css Addition for Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 60px auto;
    margin-left: 30px;
    padding: 0 20px;
    color: #1e293b;
}

@media (max-width: 600px) {
    .legal-content {
        padding: 0 20px;
        margin: 30px auto;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.legal-content h2 {
    margin: 32px 0 16px 0;
    font-size: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content ul {
    margin-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.sub-text {
    color: #64748b;
    margin-bottom: 30px;
}

/* --- FEATURES --- */
.features {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* --- FOOTER --- */
footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 50px 20px;
    text-align: center;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #f8fafc;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.85rem