/* Legal Pages CSS - Impressum & Datenschutz */

/* Legal Page Layout */
.legal-page {
    padding: var(--section-padding) var(--container-padding);
    background: linear-gradient(135deg, var(--primary-cream) 0%, #f9f7f4 100%);
    min-height: 100vh;
    position: relative;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 197, 169, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.legal-page__container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.legal-page__header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.legal-page__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.legal-page__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-beige);
}

.legal-page__subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--primary-beige);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
}

.legal-page__content {
    background: var(--white);
    border-radius: 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(212, 197, 169, 0.15);
}

.legal-page__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-beige) 0%, var(--primary-warm-beige) 100%);
}

/* Legal Sections */
.legal-section {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(212, 197, 169, 0.15);
    padding-bottom: 2.5rem;
}

.legal-section--last {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    padding-left: 1rem;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-beige);
}

.legal-section h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.legal-info {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1rem;
}

.legal-info p {
    margin-bottom: 1.2rem;
}

.legal-info p:last-child {
    margin-bottom: 0;
}

.legal-info strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.legal-info ul {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 0;
}

.legal-info ul li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style: none;
}

.legal-info ul li::before {
    content: '•';
    color: var(--primary-beige);
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
    font-size: 1.2rem;
}

.legal-info a {
    color: var(--primary-beige);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.legal-info a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-beige);
}

.legal-info a[target="_blank"]::after {
    content: ' ↗';
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Email Link Styling */
.legal-info a[href^="mailto:"] {
    font-weight: 500;
    background: linear-gradient(135deg, rgba(212, 197, 169, 0.1) 0%, rgba(232, 220, 196, 0.1) 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 197, 169, 0.2);
}

.legal-info a[href^="mailto:"]:hover {
    background: linear-gradient(135deg, rgba(212, 197, 169, 0.2) 0%, rgba(232, 220, 196, 0.2) 100%);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-beige);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(212, 197, 169, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 197, 169, 0.4);
}

.back-to-top::before {
    content: '↑';
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: calc(var(--section-padding) * 0.7) var(--container-padding);
    }
    
    .legal-page__content {
        padding: 2rem 1.5rem;
        margin: 0 -1rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .legal-info {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .legal-page__content {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
        padding-left: 0.8rem;
    }
    
    .legal-section h2::before {
        width: 3px;
        height: 20px;
    }
    
    .legal-info ul {
        margin-left: 1rem;
    }
    
    .legal-info ul li::before {
        left: -1rem;
    }
}

/* Print Styles */
@media print {
    .legal-page {
        background: white;
        padding: 1rem;
    }
    
    .legal-page::before {
        display: none;
    }
    
    .legal-page__content {
        box-shadow: none;
        border: 1px solid #ccc;
        padding: 2rem;
    }
    
    .back-to-top {
        display: none;
    }
    
    .legal-info a::after {
        content: ' (' attr(href) ')';
        font-size: 0.8rem;
        color: #666;
    }
    
    .legal-info a[href^="mailto:"]::after {
        content: '';
    }
}