/* ==========================================
   LEGAL PAGES STYLES (Impressum & Datenschutz)
   ========================================== */

:root {
    --primary-color: #0891b2;
    --secondary-color: #10b981;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: rgba(8, 145, 178, 0.1);
}

/* Hero Section */
.legal-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, 
        rgba(8, 145, 178, 0.05) 0%, 
        rgba(16, 185, 129, 0.03) 50%, 
        rgba(59, 130, 246, 0.05) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Legal Content */
.legal-content {
    padding: 80px 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.5), 
        rgba(249, 250, 251, 0.5));
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* Legal Sections */
.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease-out;
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-section em {
    color: var(--text-muted);
    font-style: italic;
}

/* Links */
.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-section a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Lists */
.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-section ul li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Special Rights List */
.rights-list {
    background: linear-gradient(135deg, 
        rgba(8, 145, 178, 0.03), 
        rgba(16, 185, 129, 0.03));
    border-radius: 12px;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
}

.rights-list li {
    padding: 0.75rem 0 0.75rem 2.5rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.rights-list li:last-child {
    border-bottom: none;
}

.rights-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-size: 1.125rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.05), 
        rgba(8, 145, 178, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.highlight-box h2 {
    color: var(--primary-color);
}

.highlight-box p {
    color: var(--text-primary);
    font-weight: 500;
}

/* Legal Footer */
.legal-footer {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-footer p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .legal-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .legal-content {
        padding: 40px 0;
    }
}

/* Print Styles */
@media print {
    .legal-hero {
        display: none;
    }
    
    .legal-wrapper {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}