/* 
 * Enhanced CSS for Legal Pages
 * AYACHI HEALTHCARE PRIVATE LIMITED
 * Privacy Policy, Terms of Service, Cookie Policy, Disclaimer
 */

/* Base Typography */
.legal-content {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #374151;
    max-width: 900px;
    margin: 0 auto;
}

/* Headings */
.legal-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.legal-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.875rem;
    font-weight: 600;
    color: #1a237e;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #00e5ff;
    line-height: 1.3;
}

.legal-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #283593;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.legal-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs */
.legal-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

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

/* Lists */
.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.legal-content ul li::marker {
    color: #00e5ff;
    font-size: 1.2em;
}

.legal-content ol li::marker {
    color: #1a237e;
    font-weight: 600;
}

/* Nested Lists */
.legal-content ul ul,
.legal-content ol ol,
.legal-content ul ol,
.legal-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Strong/Bold Text */
.legal-content strong,
.legal-content b {
    color: #1a237e;
    font-weight: 600;
}

/* Emphasis */
.legal-content em,
.legal-content i {
    color: #4b5563;
    font-style: italic;
}

/* Links */
.legal-content a {
    color: #00e5ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #1a237e;
}

/* Blockquotes */
.legal-content blockquote {
    border-left: 4px solid #00e5ff;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}

/* Tables */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legal-content table th {
    background-color: #1a237e;
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.legal-content table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.legal-content table tr:hover {
    background-color: #f9fafb;
}

/* Code Blocks */
.legal-content code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #1a237e;
}

.legal-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.legal-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Info Boxes */
.legal-content .info-box {
    background-color: #eff6ff;
    border-left: 4px solid #1a237e;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.legal-content .warning-box {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.legal-content .success-box {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

/* Last Updated Badge */
.last-updated {
    display: inline-block;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Section Dividers */
.legal-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

/* Contact Information Highlight */
.legal-content .contact-info {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(0, 229, 255, 0.05));
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border: 2px solid #00e5ff;
}

.legal-content .contact-info h3 {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-content {
        padding: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.25rem;
    }
    
    .legal-content ul,
    .legal-content ol {
        padding-left: 1.5rem;
    }
    
    .legal-content table {
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    .legal-content {
        max-width: 100%;
    }
    
    .legal-content h2 {
        page-break-after: avoid;
    }
    
    .legal-content a {
        color: #1a237e;
        text-decoration: none;
    }
    
    .legal-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #6b7280;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
.legal-content ::selection {
    background-color: #00e5ff;
    color: #1a237e;
}

.legal-content ::-moz-selection {
    background-color: #00e5ff;
    color: #1a237e;
}

/* Accessibility */
.legal-content :focus {
    outline: 2px solid #00e5ff;
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-content {
    animation: fadeIn 0.6s ease-out;
}
