/* =============================================================================
   LEGAL.CSS - Styling für Impressum & Datenschutz (H-Air-Filme)
   ============================================================================= */

/* Legal Page Wrapper */
.legal-page {
    min-height: 100vh;
    padding-top: 80px;
    background: var(--bg-primary);
}

/* Legal Header */
.legal-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(77, 182, 249, 0.05));
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .legal-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(77, 182, 249, 0.1));
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.08), transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(77, 182, 249, 0.08), transparent 50%);
    pointer-events: none;
}

.legal-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.legal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Legal Content */
.legal-content {
    padding: 60px 0 80px;
}

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

/* Legal Sections */
.legal-section {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--accent-primary), #4DB6F9);
    border-radius: 2px;
}

.legal-section h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.legal-section h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.legal-section li::marker {
    color: var(--accent-primary);
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-section a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.legal-section a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.legal-section a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Legal Info Box */
.legal-info-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.75rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-primary);
}

body.dark-mode .legal-info-box {
    background: rgba(255, 255, 255, 0.03);
}

.legal-info-box p {
    margin-bottom: 0.5rem;
}

.legal-info-box p:last-child {
    margin-bottom: 0;
}

.legal-info-box strong {
    min-width: 120px;
    display: inline-block;
    color: var(--text-primary);
}

/* Highlight Text */
.highlight-text {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(77, 182, 249, 0.1));
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-block;
    margin: 0.5rem 0;
}

body.dark-mode .highlight-text {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(77, 182, 249, 0.15));
}

/* Legal Note */
.legal-note {
    background: rgba(0, 123, 255, 0.05);
    border-left: 3px solid var(--accent-primary);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

body.dark-mode .legal-note {
    background: rgba(0, 123, 255, 0.08);
}

/* External Link Icon */
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.external-link::after {
    content: '↗';
    font-size: 0.875em;
    opacity: 0.7;
}

/* Legal Footer Info */
.legal-footer-info {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

body.dark-mode .legal-footer-info {
    background: rgba(255, 255, 255, 0.03);
}

.legal-footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.legal-footer-info p:last-child {
    margin-bottom: 0;
}

.legal-footer-info strong {
    color: var(--text-primary);
}

/* Legal Actions */
.legal-actions {
    margin: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.legal-actions .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(77, 182, 249, 0.05));
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

body.dark-mode .contact-box {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(77, 182, 249, 0.08));
}

.contact-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-box p {
    margin-bottom: 0.75rem;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* Data List */
.data-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.data-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.data-list li:last-child {
    border-bottom: none;
}

.data-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-primary), #4DB6F9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    gap: 1.25rem;
    margin: 2rem 0;
}

.right-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 3px solid var(--accent-primary);
    transition: all var(--transition-normal);
}

body.dark-mode .right-item {
    background: rgba(255, 255, 255, 0.03);
}

.right-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.right-item h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.right-item h3 i {
    color: var(--accent-primary);
    font-size: 1.125rem;
}

.right-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Data Processing Box */
.data-processing-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.75rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

body.dark-mode .data-processing-box {
    background: rgba(255, 255, 255, 0.03);
}

.data-processing-box h3,
.data-processing-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.data-processing-box ul {
    margin-bottom: 0;
}

/* Cookie Types */
.cookie-types {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.cookie-type {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.75rem;
    border-top: 3px solid var(--accent-primary);
}

body.dark-mode .cookie-type {
    background: rgba(255, 255, 255, 0.03);
}

.cookie-type h4 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.cookie-type h4 i {
    font-size: 1.125rem;
}

.cookie-type p {
    margin-bottom: 1rem;
}

.cookie-type ul {
    margin-top: 1rem;
}

.cookie-legal {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
}

/* Legal Highlight */
.legal-highlight {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(77, 182, 249, 0.05));
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 12px;
    padding: 1.75rem;
    margin: 2rem 0;
}

body.dark-mode .legal-highlight {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(77, 182, 249, 0.08));
    border-color: rgba(77, 182, 249, 0.3);
}

.legal-highlight h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.feature-list li {
    padding: 0.625rem 0 0.625rem 2rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Storage Periods */
.storage-periods {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.storage-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 3px solid var(--accent-primary);
}

body.dark-mode .storage-item {
    background: rgba(255, 255, 255, 0.03);
}

.storage-item h4 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.storage-item p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* Legal Intro */
.legal-intro {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.03), rgba(77, 182, 249, 0.03));
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

body.dark-mode .legal-intro {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.06), rgba(77, 182, 249, 0.06));
}

.legal-intro p {
    margin-bottom: 0;
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* Privacy Contact CTA */
.privacy-contact-cta {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(77, 182, 249, 0.08));
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

body.dark-mode .privacy-contact-cta {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(77, 182, 249, 0.12));
}

.privacy-contact-cta h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.privacy-contact-cta h2::before {
    display: none;
}

.privacy-contact-cta p {
    margin-bottom: 1.75rem;
    font-size: 1.0625rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn-primary,
.contact-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

.contact-buttons .btn-primary {
    background: var(--accent-primary);
    color: white;
    border: 2px solid transparent;
}

.contact-buttons .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
}

.contact-buttons .btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.contact-buttons .btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 60px;
    }

    .legal-header {
        padding: 40px 0 30px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-subtitle {
        font-size: 1rem;
    }

    .legal-content {
        padding: 40px 0 60px;
    }

    .legal-section {
        margin-bottom: 36px;
        padding-bottom: 28px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
        padding-left: 16px;
    }

    .legal-section h2::before {
        height: 24px;
    }

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

    .legal-info-box,
    .contact-box,
    .data-processing-box,
    .legal-highlight {
        padding: 1.25rem;
    }

    .privacy-contact-cta {
        padding: 1.75rem 1.25rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn-primary,
    .contact-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .rights-grid {
        gap: 1rem;
    }

    .right-item {
        padding: 1.25rem;
    }

    .cookie-types {
        gap: 1.25rem;
    }

    .cookie-type {
        padding: 1.25rem;
    }

    .data-list li {
        padding-left: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .legal-page {
        padding-top: 0;
    }

    .legal-header {
        background: none !important;
        padding: 20px 0;
    }

    .legal-header::before {
        display: none;
    }

    .privacy-contact-cta,
    .legal-actions,
    .contact-buttons {
        display: none;
    }

    .legal-section {
        page-break-inside: avoid;
    }

    .legal-section h2 {
        page-break-after: avoid;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
        border: none !important;
    }

    .legal-info-box,
    .contact-box,
    .data-processing-box,
    .legal-highlight {
        border: 1px solid #ddd !important;
        background: #f5f5f5 !important;
    }
}