/* ── Legal / info modals (shared: home + lexikon) ─────────────────────── */
.crt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.crt-modal-overlay.open { display: flex; }
.crt-modal {
    background: #000d00;
    border: 2px solid #00ff41;
    box-shadow: 0 0 32px #00ff41, 0 0 8px #00ff41 inset;
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.32rem;
    letter-spacing: 0.04em;
    line-height: 1.7;
    max-width: 620px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-shadow: 0 0 2.25px #00ff41;
    display: flex;
    flex-direction: column;
}
.crt-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 56px 32px 24px;
    scrollbar-color: #00ff41 #000;
    scrollbar-width: thin;
}
.crt-modal-intro {
    border: 1px solid rgba(0,255,65,0.5);
    background: rgba(0,255,65,0.1);
    padding: 0.6rem 0.9rem !important;
    margin-bottom: 1.2rem !important;
    opacity: 1 !important;
}
.crt-modal-overlay.must-accept .crt-modal-intro { display: block; }
.crt-modal h3 {
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
    margin: 0 0 1.2rem;
    padding: 0.4rem 0.6rem 0.5rem;
    border: 1px solid #00ff41;
    background: rgba(0,255,65,0.18);
    box-shadow: 0 0 14px rgba(0,255,65,0.35) inset;
    text-shadow: 0 0 4.5px #00ff41, 0 0 10.5px #00c832;
    text-align: left;
}
.crt-modal h4 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin: 1.8rem 0 0.5rem;
    letter-spacing: 0.1em;
    opacity: 1;
    padding: 0.25rem 0 0.25rem 0.5rem;
    border-left: 3px solid #00ff41;
    background: rgba(0,255,65,0.13);
    text-shadow: 0 0 2.25px #00ff41;
}
.crt-details {
    margin: 1.4rem 0 0;
}
.crt-details summary {
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    padding: 0.25rem 0 0.25rem 0.5rem;
    border-left: 3px solid #00ff41;
    background: rgba(0,255,65,0.13);
    text-shadow: 0 0 2.25px #00ff41;
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.crt-details summary::-webkit-details-marker { display: none; }
.crt-details summary::before {
    content: '▸';
    display: inline-block;
    transition: transform 0.15s;
    color: #00ff41;
    flex-shrink: 0;
}
.crt-details[open] summary::before {
    transform: rotate(90deg);
}
.crt-details summary:hover {
    background: rgba(0,255,65,0.22);
}
.crt-details > :not(summary) {
    margin-top: 0.4rem;
}
.crt-modal-body > p:first-of-type,
.crt-modal h4 + p {
    margin-top: 0.2rem;
}
.crt-modal p {
    margin-bottom: 0.6rem;
    opacity: 0.9;
    padding-left: 0.15rem;
}
.crt-modal code {
    font-family: inherit;
    font-size: inherit;
    background: rgba(0,255,65,0.1);
    padding: 0 3px;
    border-radius: 2px;
}
.crt-modal ul {
    margin: 0.3rem 0 0.8rem 0;
    padding: 0;
    opacity: 0.9;
}
.crt-modal ul ul {
    margin-left: -0.4rem;
}
.crt-modal ul li {
    margin-bottom: 0.25rem;
    list-style: none;
    padding-left: 0.8em;
    position: relative;
}
.crt-modal ul ul li {
    padding-left: 0.8em;
}
.crt-modal ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00ff41;
    text-shadow: 0 0 2.25px #00ff41;
}
.crt-modal a {
    color: #00ff41;
    text-decoration: underline;
}
.crt-modal em {
    font-style: normal;
}
.crt-modal a[target="_blank"]::after {
    content: ' ↗';
    display: inline-block;
    font-style: normal;
    font-size: 0.85em;
    vertical-align: super;
    line-height: 1;
    text-decoration: none;
}
.crt-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 0 2.25px #00ff41;
    padding: 0 4px;
    z-index: 10;
}
.crt-modal-close:hover { opacity: 0.7; }
.crt-modal-overlay.must-accept .crt-modal-close { display: none; pointer-events: none; }
.crt-modal-accept-bar {
    display: none;
    padding: 14px 32px;
    border-top: 1px solid #00ff41;
    flex-shrink: 0;
    text-align: center;
}
.crt-modal-overlay.open .crt-modal-accept-bar { display: block; }
.crt-modal-accept-btn,
.crt-modal-revoke-btn {
    background: none;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 6px 24px;
    text-shadow: 0 0 8px #00ff41;
    box-shadow: 0 0 8px #00ff41 inset;
    width: 100%;
}
.crt-modal-accept-btn:hover { background: rgba(0,255,65,0.12); }
.crt-modal-revoke-btn {
    border-color: #ff4141;
    color: #ff4141;
    text-shadow: 0 0 8px #ff4141;
    box-shadow: 0 0 8px #ff4141 inset;
}
.crt-modal-revoke-btn:hover { background: rgba(255,65,65,0.12); }
@media (max-width: 600px) {
    .crt-modal p,
    .crt-modal ul li,
    .crt-modal code {
        font-size: 1.28rem;
    }
    .crt-modal {
        text-shadow: none;
    }
    .crt-modal h3 {
        text-shadow: 0 0 2px #00ff41;
    }
    .crt-modal h4 {
        text-shadow: none;
    }
    .crt-modal ul li::before {
        text-shadow: none;
    }
}
@media (min-width: 900px) {
    .crt-modal { max-width: 860px; }
}
