/* RepairFlow CRM - Enhanced Legal Pages Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Enhanced Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 25px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.last-updated {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

/* Enhanced Navigation */
.nav {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav a {
    color: #4a5568;
    text-decoration: none;
    padding: 20px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-bottom: 3px solid transparent;
}

.nav a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 3px solid #f093fb;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 100%;
}

/* Enhanced Content */
.content {
    padding: 50px;
    line-height: 1.8;
    color: #2d3748;
}

h1 {
    color: #1a202c;
    font-size: 2.8rem;
    margin-bottom: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 20px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    border-radius: 2px;
}

h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    font-weight: 700;
    position: relative;
    padding-left: 30px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

h3 {
    color: #4a5568;
    font-size: 1.4rem;
    margin: 30px 0 16px 0;
    font-weight: 600;
    padding-left: 20px;
    border-left: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

h3:hover {
    border-left-color: #667eea;
    color: #667eea;
}

p {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
}

ul, ol {
    margin: 20px 0 20px 0;
    color: #4a5568;
    padding-left: 0;
}

li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
}

ul li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
}

strong {
    color: #2d3748;
    font-weight: 700;
}

/* Enhanced Contact Information */
.contact-info {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.contact-info h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border: none;
    padding: 0;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Enhanced Cards */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* Enhanced Buttons */
.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    text-align: center;
    padding: 50px 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer a {
    color: #81e6d9;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #4fd1c7;
    text-shadow: 0 0 10px rgba(79, 209, 199, 0.5);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .header {
        padding: 40px 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .content {
        padding: 30px 20px;
    }
    
    .nav {
        flex-direction: column;
    }
    
    .nav a {
        text-align: center;
        padding: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.5rem;
        padding-left: 25px;
    }
    
    h2::before {
        width: 4px;
        height: 25px;
    }
    
    .contact-info {
        padding: 25px 20px;
    }
    
    .footer {
        padding: 40px 20px;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content > * {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
    
    .header {
        background: #667eea;
        color: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .nav {
        display: none;
    }
    
    .footer {
        background: #2d3748;
        color: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 3px solid #81e6d9;
    outline-offset: 3px;
    border-radius: 3px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .header {
        background: #000;
        color: white;
    }
    
    h1, h2, h3, strong {
        color: #000;
    }
    
    .nav a {
        border: 2px solid #000;
    }
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}