/* Privacy modal styles */
.privacy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.privacy-modal {
    background: #fff;
    max-width: 980px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    /* container handles scroll on inner section */
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    padding: 0;
    /* moved to inner section */
    display: flex;
    flex-direction: column;
    font-family: Roboto, Helvetica, Arial, 'Noto Sans JP', sans-serif;
    color: #222;
    line-height: 1.75;
    font-size: 15px;
}

/* header (h1) pinned to top of modal */
.privacy-modal>h1 {
    margin: 0;
    font-size: 20px;
    background: linear-gradient(90deg, #1877F2, #58A6FF);
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* scrollable content area */
.privacy-modal>section {
    padding: 20px 28px 20px;
    overflow: auto;
    flex: 1 1 auto;
}

.privacy-modal h2 {
    font-size: 17px;
    margin-top: 19px;
    margin-bottom: 6px;
    font-weight: 600
}

.privacy-modal p {
    margin-bottom: 14px;
    color: #333
}

.privacy-modal ul,
.privacy-modal ol {
    padding-left: 1.25rem;
    margin-left: 0
}

.privacy-modal li {
    margin-bottom: 8px
}

.privacy-modal-close {
    position: absolute;
    background: #1877F2;
    color: #fff;
    border: none;
    padding: 10px 14px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
}

/* footer area inside modal to keep close button out of scrollable area */
.privacy-modal-footer {
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 18px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.86);
    /* semi-transparent footer */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* small entrance animation */
@keyframes privacyFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-modal {
    animation: privacyFadeIn 0.5s ease;
}