/* Legal Pages Styling - Updated to match main style.css */
.legal-container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 8rem 0 1rem;
}

.legal-title {
    font-size: 2.5rem;
    margin-top: -6rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    position: relative;
}

.legal-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    margin: 1rem auto 0;
    border-radius: 4px;
}

.legal-section {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: all 0.4s ease;
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.legal-section:hover::before {
    height: 7px;
}

.legal-section h2 {
    color: var(--white-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
}

.legal-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    margin: 0.8rem 0 0;
    border-radius: 4px;
}

.legal-section h3 {
    color: var(--white-color);
    margin: 2.5rem 0 1.2rem;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.legal-section h4 {
    color: var(--accent-color);
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
}

.legal-section p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0.9;
    font-size: 1.05rem;
}

/* Listen-Styling mit Nummerierung */
.legal-section ul {
    list-style: decimal;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.legal-section ul li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Zusätzliche Abstände für bessere Struktur */
.legal-section h2 + p,
.legal-section h3 + p,
.legal-section h4 + p {
    margin-top: 1rem;
}

.legal-section h2 + ul,
.legal-section h3 + ul,
.legal-section h4 + ul {
    margin-top: 1.2rem;
}

/* Hervorhebung wichtiger Informationen */
.legal-section strong {
    color: var(--accent-color);
    font-weight: 600;
}

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

/* Back Button Styling */
.back-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.back-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.back-link:hover::before {
    color: var(--accent-color);
    background-color: rgba(26, 188, 156, 0.1);
}

.back-link:hover {
    color: var(--accent-color);
    background-color: rgba(26, 188, 156, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        margin: 20px;
        padding: 6rem 0 2rem;
    }

    .legal-title {
        font-size: 2rem;
        margin-top: -4rem;
    }

    .legal-section {
        padding: 2rem;
        margin-bottom: 2rem;
    }

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

    .legal-section h3 {
        font-size: 1.3rem;
    }

    .legal-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-container {
        margin: 15px;
        padding: 5rem 0 1.5rem;
    }

    .legal-title {
        font-size: 1.8rem;
        margin-top: -3rem;
    }

    .legal-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

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

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .legal-section p {
        font-size: 0.95rem;
    }
}