/* =================================================================
   LEGAL PAGES STYLES
   Styles für Impressum & Datenschutz
   ================================================================= */

/* Legal Content Section */
.legal-content {
    padding: 5rem 0;
    background: #f8fafc;
    min-height: 60vh;
}

.legal-content .container {
    max-width: 900px;
}

.legal-content h1 {
    text-align: center;
    font-size: 3rem;
    color: #173c4b;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #daab36;
}

/* Legal Sections */
.legal-section {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.legal-section h2 {
    color: #173c4b;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #daab36;
}

.legal-section h3 {
    color: #173c4b;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-section p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-section p strong {
    color: #173c4b;
    font-weight: 600;
}

.legal-section p em {
    color: #666;
    font-style: italic;
}

/* Links in Legal Sections */
.legal-section a {
    color: #daab36;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-section a:hover {
    color: #173c4b;
    border-bottom-color: #173c4b;
}

/* Lists in Legal Sections */
.legal-section ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    position: relative;
}

.legal-section li::marker {
    color: #daab36;
    font-weight: bold;
}

/* Special Highlighting */
.legal-section p + ul {
    margin-top: -0.5rem;
}

/* Contact Links Styling */
.legal-section a[href^="tel:"],
.legal-section a[href^="mailto:"] {
    display: inline-block;
    padding: 0.2rem 0;
    font-weight: 600;
}

/* External Links */
.legal-section a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.85em;
    vertical-align: super;
    margin-left: 0.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-content {
        padding: 3rem 0;
    }

    .legal-content h1 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

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

    .legal-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

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

    .legal-section p,
    .legal-section li {
        font-size: 1rem;
        line-height: 1.7;
    }

    .legal-section ul {
        padding-left: 1.2rem;
    }
}

@media (max-width: 480px) {
    .legal-content h1 {
        font-size: 1.8rem;
    }

    .legal-section {
        padding: 1.2rem;
    }

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

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

/* Print Styles */
@media print {
    .legal-content {
        background: white;
        padding: 0;
    }

    .legal-section {
        box-shadow: none;
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
    }

    .legal-section:hover {
        transform: none;
    }

    header,
    footer,
    .breadcrumb {
        display: none;
    }
}
