/* ========== DATENSCHUTZ SEITE - PREMIUM DESIGN ========== */

:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;
    --accent-green: #6ab04c;
    --bg-light: #faf5ff;
    --bg-light-2: #f3e8ff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

/* ========== GLOBAL ========== */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-light-2) 100%);
    color: var(--text-dark);
    line-height: 1.8;
}

/* ========== HERO SECTION ========== */
.legal-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #5b21b6 100%);
    padding: 5rem 0;
    margin-bottom: 4rem;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 40px); }
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-hero h1 {
    color: white;
    font-weight: 900;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    font-size: 3.2rem;
    letter-spacing: -1px;
    animation: slideDown 0.8s ease-out;
    margin-bottom: 1rem;
}

.legal-hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.9s ease-out 0.2s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== LEGAL CONTAINER ========== */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* ========== LAST UPDATED ========== */
.last-updated {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--primary);
    animation: slideInLeft 0.6s ease-out;
}

.last-updated i {
    color: var(--primary);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== TABLE OF CONTENTS ========== */
.toc {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
    border: 2px solid var(--bg-light-2);
}

.toc h3 {
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.toc h3 i {
    color: var(--primary);
    margin-right: 0.75rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.toc li {
    transition: all 0.3s ease;
}

.toc li:hover {
    transform: translateX(8px);
}

.toc a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.toc a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.toc i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.toc a:hover i {
    transform: translateX(3px);
}

/* ========== LEGAL SECTIONS ========== */
.legal-section {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.08);
    border-left: 5px solid var(--primary);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.legal-section:hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
    transform: translateY(-4px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.legal-section h2 {
    font-weight: 900;
    color: var(--text-dark);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light-2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.legal-section h2 i {
    color: var(--primary);
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.1));
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.legal-section:hover h2 i {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.2));
}

.legal-section h3 {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.legal-section h3:first-child {
    margin-top: 0;
}

.legal-section p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.legal-section ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.legal-section li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    line-height: 1.6;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.legal-section li:hover::before {
    transform: scale(1.5);
    box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.15);
}

/* ========== HIGHLIGHT BOX ========== */
.highlight-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.highlight-box strong {
    color: var(--primary-dark);
    font-weight: 800;
}

.highlight-box i {
    color: var(--primary);
    font-weight: 700;
}

/* ========== CONTACT BOX ========== */
.contact-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-box h3 {
    color: var(--primary-dark);
    font-weight: 900;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.contact-box h3 i {
    color: var(--primary);
}

.contact-box p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.contact-box a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-box a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========== SECURITY BADGES ========== */
.security-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.badge-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.badge-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}

.badge-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.badge-item h4 {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.95rem;
    margin: 0;
}

/* ========== RIGHTS GRID ========== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.right-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
}

.right-item strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.right-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 2.2rem;
    }

    .legal-hero .lead {
        font-size: 1rem;
    }

    .legal-hero {
        padding: 3rem 0;
    }

    .legal-container {
        padding: 0 1rem 3rem;
    }

    .legal-section {
        padding: 1.75rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h2 i {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1rem;
    }

    .toc {
        padding: 1.75rem;
    }

    .toc ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .toc a {
        font-size: 0.9rem;
    }

    .contact-box {
        padding: 1.75rem;
    }

    .contact-box h3 {
        font-size: 1.2rem;
    }

    .security-badges {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 1.6rem;
    }

    .legal-hero .lead {
        font-size: 0.9rem;
    }

    .legal-section {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .legal-section h2 {
        font-size: 1.1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-section h2 i {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .last-updated {
        font-size: 0.8rem;
        padding: 0.75rem 1.5rem;
    }

    .highlight-box {
        padding: 1.25rem;
        font-size: 0.9rem;
    }

    .legal-section li {
        padding-left: 2rem;
        font-size: 0.9rem;
    }

    .contact-box {
        padding: 1.5rem;
    }

    .security-badges {
        grid-template-columns: 1fr;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
