.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(2px);
}

.privacy-modal[hidden] {
    display: none;
}

.privacy-modal__panel {
    width: min(920px, calc(100vw - 2rem));
    height: min(82vh, 860px);
    overflow: hidden;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.privacy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    color: #111827;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.privacy-modal__title {
    font-size: 1rem;
    font-weight: 700;
}

.privacy-modal__close {
    padding: 0.45rem 0.7rem;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.privacy-modal__close:hover,
.privacy-modal__close:focus {
    background: #dbeafe;
    outline: 2px solid transparent;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.55);
}

.privacy-modal__content {
    height: calc(100% - 7.3rem);
    padding: 1.25rem;
    overflow-y: auto;
    color: #374151;
    background: #f8fafc;
}

.privacy-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 3.65rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.privacy-modal__content > * {
    max-width: 48rem;
    margin-right: auto;
    margin-left: auto;
}

.privacy-modal__content a {
    color: #1d4ed8;
    text-decoration: underline;
}

html.privacy-modal-open {
    overflow: hidden;
}

@media (max-width: 639px) {
    .privacy-modal {
        padding: 0;
    }

    .privacy-modal__panel {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }
}

@media print {
    .privacy-modal {
        display: none !important;
    }
}
