/* Override main header styles for legal pages */
.modern-header {
    min-height: auto !important;
    background: #fff !important;
    padding-top: 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modern-header::before {
    display: none !important;
}

nav {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 5% !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav__brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    height: auto !important;
    padding: 0.5rem 0 !important;
    margin-right: 1rem !important;
}

.logo__image {
    height: 50px !important;
    width: auto;
}

.logo__text-wrapper {
    display: flex !important;
    align-items: center !important;
}

.logo__text {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--ydm-dark) !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    background: linear-gradient(135deg, var(--ydm-teal) 0%, var(--ydm-orange) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.nav-links a {
    color: var(--ydm-dark) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--ydm-orange) !important;
}

.menu-btn {
    color: var(--ydm-dark) !important;
}

/* Legal page content */
.legal-page {
    padding: 100px 0 40px;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.legal-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
}

.legal-page h1 {
    color: var(--ydm-dark);
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    position: relative;
}

.legal-page h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--ydm-orange) 0%, var(--ydm-teal) 100%);
    border-radius: 2px;
}

.last-updated {
    text-align: center;
    color: var(--ydm-teal);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.legal-page h2 {
    color: var(--ydm-teal);
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-left: 4px solid var(--ydm-orange);
    padding-left: 1rem;
}

.legal-page p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--ydm-shadow-grey);
    font-size: 1rem;
}

.legal-page ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    color: var(--ydm-shadow-grey);
    line-height: 1.6;
    position: relative;
}

.legal-page li::before {
    content: '•';
    color: var(--ydm-orange);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.legal-page section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(242, 140, 24, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(242, 140, 24, 0.1);
}

.legal-page a {
    color: var(--ydm-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.legal-page a:hover {
    color: var(--ydm-orange);
    text-decoration: underline;
}

.contact-info {
    background: linear-gradient(135deg, var(--ydm-teal) 0%, var(--ydm-orange) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info p {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

.contact-info a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer styling for legal pages */
footer {
    background: var(--ydm-teal) !important;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-bottom p {
    margin: 0;
    color: #fff !important;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--ydm-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .legal-page .container {
        padding: 0 3%;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.5rem 4% !important;
    }
    
    .logo {
        height: 60px !important;
    }
    
    .logo img {
        height: 45px !important;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        margin: 0.5rem 0;
        display: block;
        margin-left: 0;
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }

    .menu-btn {
        display: block;
        font-size: 1.5rem;
    }

    .legal-page {
        padding: 100px 0 40px;
    }
    
    .legal-page .container {
        padding: 0 4%;
    }

    .legal-page h1 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 30px;
    }

    .legal-page h2 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }
    
    .legal-page p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .legal-page ul {
        padding-left: 20px;
    }
    
    .legal-page section {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.4rem 3% !important;
    }
    
    .logo {
        height: 55px !important;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .legal-page {
        padding: 90px 0 30px;
    }
    
    .legal-page .container {
        padding: 0 3%;
    }

    .legal-page h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .legal-page h2 {
        font-size: 1.2rem;
        margin: 20px 0 10px;
    }
    
    .legal-page p {
        font-size: 0.9rem;
    }
    
    .legal-page ul {
        padding-left: 15px;
    }
    
    .legal-page li {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 15px 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .legal-page h1 {
        font-size: 1.6rem;
    }

    .legal-page h2 {
        font-size: 1.1rem;
    }
    
    .legal-page p {
        font-size: 0.85rem;
    }
    
    .legal-page .container {
        padding: 0 2%;
    }
}