/* components/legal.css
   Styles für statische Rechtstexte (Datenschutz, Impressum, AGB)
*/

.legal-page {
    max-width: 820px;
    margin: 2rem auto 4rem;
    padding: 2.5rem 2rem;
    background: var(--color-bg-secondary, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-md, 0 4px 14px rgba(0, 0, 0, 0.06));
    line-height: 1.65;
    color: var(--color-text, #1f2937);
    font-size: 1rem;
}

.legal-page__header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.legal-page__header h1 {
    font-family: var(--font-display, 'Cormorant', serif);
    font-size: 2.25rem;
    margin: 0 0 0.5rem;
}

.legal-page__meta {
    color: var(--color-text-muted, #6b7280);
    font-size: 0.9rem;
    margin: 0;
}

.legal-page__intro {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

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

.legal-page h2 {
    font-family: var(--font-display, 'Cormorant', serif);
    font-size: 1.5rem;
    margin: 1.75rem 0 0.75rem;
    color: var(--color-text, #111827);
}

.legal-page h3 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--color-text, #111827);
}

.legal-page p {
    margin: 0 0 0.85rem;
}

.legal-page ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.legal-page li {
    margin-bottom: 0.4rem;
}

.legal-page address {
    font-style: normal;
    padding: 0.85rem 1rem;
    background: var(--color-bg-tertiary, #f9fafb);
    border-left: 3px solid var(--color-accent, #6366f1);
    border-radius: var(--radius-sm, 6px);
    margin: 0.5rem 0 1rem;
}

.legal-page a {
    color: var(--color-link, #4f46e5);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page a:hover {
    color: var(--color-link-hover, #4338ca);
}

.legal-page strong {
    font-weight: 600;
}

/* AVV-Annahme-Modal */
.dpa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dpa-modal {
    background: #fff;
    border-radius: 12px;
    width: min(900px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.dpa-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.dpa-modal__header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.dpa-modal__header h2 {
    margin: 0 0 .25rem;
    font-size: 1.4rem;
}

.dpa-modal__body {
    padding: 1rem 1.5rem 1.25rem;
    overflow-y: auto;
}

.dpa-modal__iframe {
    width: 100%;
    height: 360px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin: 0.75rem 0 1rem;
    background: #fafafa;
}

.dpa-modal__form .form-group {
    margin-bottom: 0.75rem;
}

.dpa-modal__form .consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    line-height: 1.5;
    font-size: 0.93rem;
    cursor: pointer;
    border-top: 1px solid #eef0f3;
}

.dpa-modal__form .consent-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.05rem;
    height: 1.05rem;
}

.dpa-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .legal-page {
        margin: 1rem;
        padding: 1.5rem 1.25rem;
    }
    .legal-page__header h1 {
        font-size: 1.75rem;
    }
    .legal-page h2 {
        font-size: 1.25rem;
    }
}
