/* Legal Pages Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.legal-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.legal-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.header-logo {
    height: 50px;
    width: auto;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.header-nav a:hover,
.header-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Main Content */
.legal-main {
    flex: 1;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.legal-content h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

section {
    margin-bottom: 35px;
}

.legal-content h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2ff;
}

.legal-content h3 {
    color: #5a6fd8;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    font-weight: 500;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.legal-content ul {
    margin: 15px 0 20px 30px;
    list-style-type: disc;
}

.legal-content li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.7;
}

.legal-content strong {
    color: #333;
    font-weight: 600;
}

/* Special styling for important notices */
section:has(p:contains("IMPORTANT NOTICE")) {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

/* Footer */
.legal-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .legal-main {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .legal-content {
        padding: 30px 25px;
    }
    
    .legal-content h1 {
        font-size: 2em;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 20px 15px;
    }
    
    .legal-content h1 {
        font-size: 1.8em;
    }
    
    .legal-content h2 {
        font-size: 1.2em;
    }
    
    .legal-content ul {
        margin-left: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .legal-header,
    .legal-footer {
        display: none;
    }
    
    .legal-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .legal-content h1,
    .legal-content h2 {
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}