/*
 * Self-contained legal popups (Personal Data Processing Policy + Privacy Policy),
 * rendered site-wide from partials/legal-popups.blade.php and toggled by
 * public/js/legal-popups.js. Independent of Tilda's per-record popup init so they
 * work on every page; styled to match the original Tilda t390 popup.
 */
.legal-popup {
    position: fixed;
    inset: 0;
    z-index: 10000002; /* above the Livewire form/quiz modals (10000000) */
    /* display is toggled inline by legal-popups.js (none <-> flex) */
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-popup__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 3, 23, 0.55);
}

.legal-popup__panel {
    position: relative;
    width: 100%;
    max-width: 1160px;
    margin: auto;
    box-sizing: border-box;
    background: #fbfbf9;
    border-radius: 60px;
    padding: 56px 64px;
    box-shadow: 0 20px 80px rgba(0, 3, 23, 0.25);
}

.legal-popup__close {
    position: absolute;
    top: 28px;
    right: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #000317;
}

.legal-popup__title {
    margin: 0 0 20px;
    padding-right: 40px;
    color: #002379;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    font-family: var(--t-text-font, 'PPMori', Arial, sans-serif);
}

.legal-popup__body {
    color: #000317;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    font-family: var(--t-text-font, 'PPMori', Arial, sans-serif);
}

.legal-popup__body ul {
    margin: 0.4em 0;
    padding-left: 20px;
}

body.legal-popup-open {
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    .legal-popup { padding: 16px; }
    .legal-popup__panel { border-radius: 32px; padding: 32px 24px; max-width: none; }
    .legal-popup__title { font-size: 24px; }
    .legal-popup__close { top: 20px; right: 20px; }
}
