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

.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 13050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.privacy-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 32, 50, .62);
    backdrop-filter: blur(4px);
}

.privacy-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    background: #fff;
    border: 1px solid #d7e8f8;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(20, 28, 44, .28);
    overflow: hidden;
}

.privacy-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px 14px;
    border-bottom: 1px solid #e4eef8;
    background: #f7fbff;
}

.privacy-modal__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #2f93f5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.privacy-modal__head h2 {
    margin: 0;
    color: #2d3150;
    font-size: 24px;
    line-height: 1.2;
}

.privacy-modal__close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid #d4e6f9;
    border-radius: 50%;
    color: #2d3150;
    background: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.privacy-modal__close:hover {
    background: #eef6ff;
}

.privacy-modal__body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 8px 22px 20px;
    -webkit-overflow-scrolling: touch;
}

.privacy-modal__foot {
    display: flex;
    justify-content: flex-end;
    padding: 14px 22px;
    border-top: 1px solid #e4eef8;
    background: #f8fafc;
}

.privacy-doc {
    color: #2d3150;
}

.privacy-doc__lead {
    margin: 14px 0 8px;
    color: #5e6f89;
    font-size: 16px;
    line-height: 1.55;
}

.privacy-doc h3 {
    margin: 26px 0 8px;
    color: #2d3150;
    font-size: 18px;
    line-height: 1.3;
}

.privacy-doc p,
.privacy-doc li {
    color: #5e6f89;
    font-size: 15px;
    line-height: 1.65;
}

.privacy-doc ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.privacy-doc a {
    color: #1268bb;
    font-weight: 600;
}

.privacy-doc__box {
    margin: 14px 0;
    padding: 14px 16px;
    border: 1px solid #cfe4fa;
    border-radius: 8px;
    background: #f4f9ff;
}

.privacy-doc__box p {
    margin: 0;
}

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

@media (max-width: 700px) {
    .privacy-modal {
        padding: 10px;
        align-items: stretch;
    }

    .privacy-modal__dialog {
        max-height: none;
        height: calc(100vh - 20px);
        border-radius: 12px;
    }

    .privacy-modal__head h2 {
        font-size: 20px;
    }

    .privacy-modal__body {
        padding: 4px 16px 16px;
    }
}
