/**
 * Legal Document Entry-Type Styles — PJV (Projektvereinbarungen) and future legal texts.
 *
 * Overlay/animation is handled by scroll-text.css (universal).
 * This file contains ONLY legal-document-specific entry type styles.
 * Prefix: .mm-legal-*
 */

/* --- Legal inner container (wider than credits for readable text) --- */

.mm-legal-inner {
    width: 80vw;
}

/* --- Document Title (large, centered, uppercase) --- */

.mm-legal-title {
    text-align: center;
    font-size: 26px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

/* --- Subtitle --- */

.mm-legal-subtitle {
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
}

/* --- Version identifier --- */

.mm-legal-version {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 10px;
}

/* --- Section heading (e.g., "1 — Monetarisierung...") --- */

.mm-legal-heading {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ase-mm-ring-color);
    opacity: 0.7;
    margin-top: 28px;
    margin-bottom: 14px;
    padding-top: 10px;
}

/* --- Subsection heading (e.g., "Abs 1. Crowd Funding") --- */

.mm-legal-subsection {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 20px;
    margin-bottom: 10px;
}

/* --- Body paragraph (justified, readable) --- */

.mm-legal-paragraph {
    text-align: justify;
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

/* --- Emphasis paragraph (italic) --- */

.mm-legal-emphasis {
    text-align: justify;
    font-size: 13px;
    font-style: italic;
    line-height: 1.7;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
    padding: 0 20px;
}

/* --- Copyright footer --- */

.mm-legal-copyright {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    padding: 2px 0;
}

/* --- Spacer --- */

.mm-legal-spacer {
    height: 40px;
}

/* --- Responsive: Tablet (<=767px) — slightly narrower, reduce font sizes --- */

@media (max-width: 767px) {
    .mm-legal-inner {
        width: 88vw;
    }

    .mm-legal-title {
        font-size: 22px;
    }

    .mm-legal-subtitle {
        font-size: 14px;
    }

    .mm-legal-heading {
        font-size: 14px;
        margin-top: 22px;
        margin-bottom: 10px;
    }

    .mm-legal-subsection {
        font-size: 13px;
        margin-top: 16px;
        margin-bottom: 8px;
    }

    .mm-legal-paragraph,
    .mm-legal-emphasis {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .mm-legal-emphasis {
        padding: 0 12px;
    }

    .mm-legal-copyright {
        font-size: 10px;
    }

    .mm-legal-spacer {
        height: 30px;
    }
}

/* --- Responsive: Mobile (<=639px) — near-fullwidth, compact type --- */

@media (max-width: 639px) {
    .mm-legal-inner {
        width: 94vw;
    }

    .mm-legal-title {
        font-size: 18px;
        letter-spacing: 0.15em;
    }

    .mm-legal-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .mm-legal-version {
        font-size: 10px;
    }

    .mm-legal-heading {
        font-size: 13px;
        letter-spacing: 0.12em;
        margin-top: 18px;
        margin-bottom: 8px;
    }

    .mm-legal-subsection {
        font-size: 12px;
        margin-top: 14px;
        margin-bottom: 6px;
    }

    .mm-legal-paragraph,
    .mm-legal-emphasis {
        font-size: 11px;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .mm-legal-emphasis {
        padding: 0 8px;
    }

    .mm-legal-copyright {
        font-size: 9px;
    }

    .mm-legal-spacer {
        height: 24px;
    }
}

/* --- Pre-auth legal footer (bottom-center, always visible) --- */

.mm-legal-footer {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
    z-index: 10;
}

.mm-legal-footer a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mm-legal-footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.mm-legal-footer-sep {
    color: rgba(255, 255, 255, 0.15);
}

/* --- Config panel: legal section description --- */

.mm-legal-config-desc {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 12px;
}

/* --- DSGVO action rows (interactive rights) --- */

.mm-legal-action-row {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mm-legal-action-hint {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.mm-legal-action-btn-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Danger button (account deletion) --- */

.mm-legal-btn-danger {
    color: rgba(255, 100, 80, 0.8) !important;
    border-color: rgba(255, 100, 80, 0.3) !important;
}

.mm-legal-btn-danger:hover {
    color: rgba(255, 100, 80, 1) !important;
    border-color: rgba(255, 100, 80, 0.5) !important;
}

.mm-legal-btn-danger-confirm {
    color: rgba(255, 50, 30, 1) !important;
    border-color: rgba(255, 50, 30, 0.6) !important;
    animation: mm-legal-pulse 0.8s ease infinite;
}

@keyframes mm-legal-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* --- Status feedback text --- */

.mm-legal-status {
    font-size: 11px;
    letter-spacing: 0.04em;
    min-height: 16px;
    transition: color 0.2s ease;
}

.mm-legal-status-pending {
    color: rgba(255, 204, 0, 0.7);
}

.mm-legal-status-ok {
    color: rgba(0, 204, 120, 0.8);
}

.mm-legal-status-warn {
    color: rgba(255, 160, 50, 0.8);
}

.mm-legal-status-error {
    color: rgba(255, 80, 60, 0.8);
}
