/* ============================================================
   Privacy Modal
   ============================================================ */

.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    box-sizing: border-box;
}

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

.privacy-modal__box {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.privacy-modal__top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e8e8e8;
}

.privacy-modal__top-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.privacy-modal__close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.privacy-modal__close:hover {
    background: #f0f0f0;
    color: #111;
}

.privacy-modal__close::before,
.privacy-modal__close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.privacy-modal__close::before { transform: rotate(45deg); }
.privacy-modal__close::after  { transform: rotate(-45deg); }

.privacy-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
   Privacy Content (본문 타이포 — 모달·페이지 공용)
   ============================================================ */

.privacy-content {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

.privacy-content__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111;
}

.privacy-content__section {
    margin-top: 28px;
    padding: 10px 0;
}

.privacy-content__heading {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111;
    text-align: left;
}

.privacy-content__paragraph {
    margin: 0 0 10px;
}

.privacy-content__paragraph:last-child {
    margin-bottom: 0;
}

.privacy-content__list {
    margin: 8px 0 10px;
    padding-left: 20px;
}

.privacy-content__list li {
    margin-bottom: 4px;
    list-style: disc;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .privacy-modal {
        padding: 0;
        align-items: flex-end;
    }

    .privacy-modal__box {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 12px 12px 0 0;
    }

    .privacy-modal__top {
        padding: 16px 20px 14px;
    }

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

    .privacy-content,
    .privacy-content__paragraph,
    .privacy-content__list li {
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
}
