/* --- public/css/legal.css --- */

.legal-page {
    padding-bottom: 80px;
    background-color: var(--bg-body, #F8FAFC);
    min-height: 100vh;
}

/* Floating Rounded Rectangle Hero (Matches About Us) */
.legal-hero-banner {
    background: linear-gradient(135deg, var(--brand-primary, #0A2540) 0%, var(--brand-secondary, #133D6B) 100%) !important;
    border-radius: 32px !important; 
    padding: 60px 20px !important; 
    max-width: var(--max-width, 1200px);
    margin: 24px auto 0 auto; 
    width: calc(100% - 40px); 
    box-shadow: 0 12px 30px rgba(10, 37, 64, 0.15); 
}

.legal-hero-banner::before,
.legal-hero-banner .hero-overlay {
    display: none !important;
}

.legal-hero-banner .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.legal-hero-banner h1 {
    font-size: 2.5rem; 
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: 2px; 
}

.legal-hero-banner p {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Document Container --- */
.legal-content-wrapper {
    margin-top: 40px;
    max-width: 860px; /* Narrower width for optimal reading line-length */
}

.legal-document {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 60px 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(225, 232, 237, 0.8);
}

.document-header {
    border-bottom: 2px solid var(--border-light, #E1E8ED);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.last-updated {
    font-size: 0.95rem;
    color: var(--text-muted, #6B7280);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Article Styling --- */
.legal-article {
    margin-bottom: 40px;
}

.legal-article:last-child {
    margin-bottom: 0;
}

.legal-article h2 {
    font-size: 1.25rem;
    color: var(--brand-primary, #0A2540);
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

/* Optional: Add a small accent mark next to headings */
.legal-article h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: var(--brand-accent, #1B9A93);
    margin-right: 12px;
    border-radius: 2px;
}

.legal-article p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main, #374151);
    margin-bottom: 16px;
}

.legal-article p:last-child {
    margin-bottom: 0;
}

.legal-article strong {
    color: var(--brand-primary, #0A2540);
    font-weight: 700;
    background: rgba(27, 154, 147, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* List Styling within Legal Docs */
.legal-article ul {
    margin-top: 10px;
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-article ul li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main, #374151);
    margin-bottom: 8px;
    position: relative;
}

.legal-article a {
    color: var(--brand-accent, #1B9A93);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.legal-article a:hover {
    border-bottom-color: var(--brand-accent, #1B9A93);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .legal-document {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .legal-hero-banner h1 {
        font-size: 2rem;
    }
}