/* ========================================
   LEGAL PAGES – AGB, Datenschutz, Impressum
   ======================================== */

.legal-page {
    padding: 120px 20px 60px;
    min-height: 80vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.legal-container {
    width: 60%;
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 18px;
    padding: 50px 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ===== HEADER ===== */
.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-violet, #8b5cf6), var(--accent-pink, #ec4899));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    color: transparent; /* Fallback für Browser ohne Unterstützung */
}

.legal-header p {
    color: var(--text-muted, #a8a8a8);
    font-size: 1rem;
}

/* ===== SECTIONS ===== */
.legal-section {
    margin-bottom: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-violet, #8b5cf6);
    margin-bottom: 16px;
}

.legal-section p {
    color: var(--text-muted, #a8a8a8);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section p strong {
    color: var(--text-primary, #eaeaea);
    font-weight: 600;
}

.legal-section p a {
    color: var(--accent-violet, #8b5cf6);
    text-decoration: underline;
    transition: color 0.2s;
}

.legal-section p a:hover {
    color: var(--accent-pink, #ec4899);
}

/* ===== LISTS ===== */
.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
}

.legal-section ul li {
    color: var(--text-muted, #a8a8a8);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 4px 0 4px 28px;
    position: relative;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent-violet, #8b5cf6);
    border-radius: 50%;
    opacity: 0.4;
}

/* ===== FOOTER (innerhalb der legal page) ===== */
.legal-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.legal-footer p {
    color: var(--text-muted, #a8a8a8);
    font-size: 0.85rem;
}

section {
    height: 100vh unset !important; 
    display: unset !important; 
    align-items: unset !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .legal-container {
        padding: 30px 24px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .legal-section p,
    .legal-section ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 100px 12px 40px;
    }

    .legal-container {
        padding: 20px 16px;
    }

    .legal-header h1 {
        font-size: 1.6rem;
    }

    .legal-section h2 {
        font-size: 1rem;
    }

    .legal-section ul li {
        padding-left: 22px;
        font-size: 0.85rem;
    }

    .legal-section ul li::before {
        width: 8px;
        height: 8px;
    }
}