/* Enhanced Legal Pages Styling for FURA website */

/* Main legal content container */
.legal-content {
    max-width: 900px;
    margin: 40px auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 30px rgba(92, 107, 192, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    animation: legalContentSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes legalContentSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        backdrop-filter: blur(0px) saturate(100%);
        -webkit-backdrop-filter: blur(0px) saturate(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 24px 24px 0 0;
}

/* Typography */
.legal-content h1 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.legal-content .last-updated {
    color: #64748b;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 40px;
    padding: 12px 20px;
    background: rgba(92, 107, 192, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal-content h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    line-height: 1.3;
}

.legal-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.legal-content h3 {
    color: #334155;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 3px solid rgba(92, 107, 192, 0.3);
}

.legal-content p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
}

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

/* Enhanced sections */
.legal-content section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.legal-content section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-content section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(92, 107, 192, 0.12);
    border-color: rgba(92, 107, 192, 0.2);
}

.legal-content section:hover::before {
    opacity: 1;
}

/* Enhanced lists */
.legal-content ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.legal-content li {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    padding: 12px 0 12px 40px;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.legal-content li::before {
    content: '→';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.legal-content li:hover {
    background: rgba(92, 107, 192, 0.05);
    transform: translateX(4px);
    color: #334155;
}

/* Enhanced links */
.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    padding: 2px 4px;
    border-radius: 4px;
}

.legal-content a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.legal-content a:hover {
    background: rgba(92, 107, 192, 0.1);
    color: var(--secondary-color);
}

.legal-content a:hover::after {
    transform: scaleX(1);
}

/* Special styling for contact emails */
.legal-content a[href^="mailto:"] {
    background: rgba(92, 107, 192, 0.1);
    border: 1px solid rgba(92, 107, 192, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    margin: 4px 0;
}

.legal-content a[href^="mailto:"]:hover {
    background: rgba(92, 107, 192, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 107, 192, 0.2);
}

/* Table of contents navigation (if needed) */
.legal-content .toc {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(92, 107, 192, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
}

.legal-content .toc h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.legal-content .toc ul {
    columns: 2;
    column-gap: 30px;
}

.legal-content .toc li {
    break-inside: avoid;
    padding: 6px 0 6px 20px;
    font-size: 0.9rem;
}

.legal-content .toc li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .legal-content {
        margin: 20px;
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 35px;
    }
    
    .legal-content section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .legal-content .toc ul {
        columns: 1;
    }
}

@media (max-width: 480px) {
    .legal-content {
        margin: 15px;
        padding: 25px 20px;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content section {
        padding: 15px;
    }
}

/* Print styles */
@media print {
    .legal-content {
        background: white;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
        padding: 20px;
    }
    
    .legal-content section {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
    }
}