/* Legal Pages Styles (Impressum & Datenschutz) */

body, html {
    overflow: auto;
}

/* Close Button für Legal Pages */
.legal-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.legal-close-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.legal-close-button span {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #7a7a7a;
    transition: all 0.3s ease;
}

.legal-close-button span:first-child {
    transform: rotate(45deg);
}

.legal-close-button span:last-child {
    transform: rotate(-45deg);
}

.legal-close-button:hover span {
    background-color: #333;
}

.legal-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.legal-box {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 60px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
}

.legal-box .logo {
    text-align: center;
    margin-bottom: 40px;
}

.legal-box .logo img {
    width: 180px;
    height: auto;
    transition: opacity 0.3s ease;
}

.legal-box .logo a:hover img {
    opacity: 0.7;
}

.legal-box h1 {
    color: #7a7a7a;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.legal-content {
    color: #333;
    line-height: 1.8;
}

.legal-content h2 {
    color: #7a7a7a;
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.legal-content h3 {
    color: #7a7a7a;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 15px;
    font-size: 15px;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 8px;
    font-size: 15px;
}

.legal-content a {
    color: #7a7a7a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #7a7a7a;
}

.last-updated {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #7a7a7a;
    font-size: 14px;
}

.legal-box .legal-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-close-button {
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
    }

    .legal-close-button span {
        width: 16px;
    }

    .legal-wrapper {
        padding: 20px 15px;
    }

    .legal-box {
        padding: 30px 25px;
        padding-top: 50px;
    }

    .legal-box h1 {
        font-size: 26px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    .legal-content h3 {
        font-size: 16px;
    }

    .legal-content p,
    .legal-content li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .legal-close-button {
        top: 12px;
        right: 12px;
    }

    .legal-box {
        padding: 25px 20px;
        padding-top: 45px;
    }

    .legal-box .logo img {
        width: 140px;
    }

    .legal-box h1 {
        font-size: 22px;
    }

    .legal-content h2 {
        font-size: 18px;
    }
}
