/* Legal Pages Styling */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background Stars */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    z-index: -1;
    opacity: 0.3;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(20, 25, 40, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(100, 200, 255, 0.3);
}

/* Header Styling */
.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(100, 200, 255, 0.3);
    position: relative;
}

.back-button {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(100, 200, 255, 0.2);
    color: #64c8ff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(100, 200, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-button:hover {
    background: rgba(100, 200, 255, 0.3);
    color: #ffffff;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(100, 200, 255, 0.2);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: #64c8ff;
    margin: 2rem 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.legal-header h1 i {
    font-size: 2rem;
}

/* Content Styling */
.legal-content {
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(30, 35, 50, 0.6);
    border-radius: 12px;
    border-left: 4px solid #64c8ff;
    transition: all 0.3s ease;
}

.legal-section:hover {
    background: rgba(30, 35, 50, 0.8);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(100, 200, 255, 0.1);
}

.legal-section h2 {
    color: #64c8ff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.legal-section h2 i {
    font-size: 1.5rem;
}

.legal-section h3 {
    color: #ffffff;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    padding-bottom: 0.5rem;
}

.legal-section h4 {
    color: #b0b8c8;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.legal-section p {
    color: #d1d5db;
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
    color: #d1d5db;
}

.legal-section li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.legal-section li i {
    color: #64c8ff;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1rem;
}

/* Special Styling for Music/AI Sections */
.music-notice {
    border-left-color: #ffd700;
    background: rgba(40, 35, 20, 0.6);
}

.music-notice:hover {
    background: rgba(40, 35, 20, 0.8);
}

.ai-notice {
    background: rgba(255, 215, 0, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin: 1rem 0;
}

.ai-details {
    margin: 1.5rem 0;
}

.ai-details h3,
.ai-details h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.ai-details ul li {
    color: #ffffff;
}

.ai-details li i {
    color: #ffd700;
}

.ai-disclaimer {
    font-style: italic;
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

/* Contact Information */
.contact-info {
    background: rgba(100, 200, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 200, 255, 0.3);
    margin: 1rem 0;
}

.contact-info h3 {
    color: #64c8ff;
    margin-top: 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-methods {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(100, 200, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(100, 200, 255, 0.2);
    transform: translateX(5px);
}

.contact-method i {
    color: #64c8ff;
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

/* Links */
a {
    color: #64c8ff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #ffffff;
    border-bottom-color: #64c8ff;
}

.legal-link {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: rgba(100, 200, 255, 0.1);
    border-radius: 4px;
}

.legal-link:hover {
    background: rgba(100, 200, 255, 0.2);
    transform: translateY(-1px);
}

/* Footer */
.legal-footer {
    text-align: center;
    padding: 2rem;
    border-top: 2px solid rgba(100, 200, 255, 0.3);
    color: #94a3b8;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: #64c8ff;
    font-weight: 500;
}

.separator {
    color: #94a3b8;
}

/* Table of Contents (if enabled) */
.table-of-contents {
    background: rgba(100, 200, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 200, 255, 0.3);
    margin: 2rem 0;
}

.table-of-contents h3 {
    color: #64c8ff;
    margin-bottom: 1rem;
}

.table-of-contents ul {
    list-style: none;
    margin-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.table-of-contents a:hover {
    transform: translateX(10px);
    border-bottom-color: #64c8ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .legal-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .back-button {
        position: static;
        margin-bottom: 1rem;
        display: inline-flex;
        width: fit-content;
    }
    
    .legal-header h1 {
        font-size: 2rem;
        margin: 1rem 0 0 0;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .legal-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-section {
        padding: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .contact-info,
    .ai-notice {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    body::before {
        display: none;
    }
    
    .legal-container {
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .back-button {
        display: none;
    }
    
    .legal-section {
        break-inside: avoid;
        background: #f9f9f9;
        border-left-color: #333;
    }
    
    a {
        color: #0066cc;
        text-decoration: underline;
    }
    
    .legal-header h1,
    .legal-section h2 {
        color: #333;
    }
}

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

/* Selection styling */
::selection {
    background: rgba(100, 200, 255, 0.3);
    color: #ffffff;
}

/* Focus styles for accessibility */
a:focus,
.back-button:focus {
    outline: 2px solid #64c8ff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading animation for smooth page entry */
.legal-container {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Footer für Startseite */
.legal-footer-home {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 25, 40, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(100, 200, 255, 0.3);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.legal-links .legal-link {
    color: #64c8ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(100, 200, 255, 0.1);
    border: 1px solid rgba(100, 200, 255, 0.2);
}

.legal-links .legal-link:hover {
    background: rgba(100, 200, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(100, 200, 255, 0.2);
}

.legal-links .separator {
    color: #94a3b8;
    font-size: 0.8rem;
}

.ai-music-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.ai-music-notice i {
    font-size: 0.9rem;
}

.legal-note {
    text-align: center;
    margin-top: 0.5rem;
}

.legal-note p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive für Startseite Footer */
@media (max-width: 768px) {
    .legal-footer-home {
        padding: 0.8rem;
    }
    
    .legal-links {
        gap: 0.5rem;
        justify-content: center;
        text-align: center;
    }
    
    .legal-links .legal-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    .ai-music-notice {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .legal-note p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .legal-links {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .legal-links .separator {
        display: none;
    }
    
    .ai-music-notice {
        margin-top: 0.3rem;
        order: unset;
    }
}