/* 정책 링크 버튼 스타일 */
.policy-link-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.policy-link-btn:hover {
    text-decoration: none;
}

/* 개인정보처리방침 모달 스타일 */
.policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.policy-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.policy-modal-dialog {
    position: relative;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: policyModalShow 0.3s ease-out;
}

@keyframes policyModalShow {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.policy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #ce1122;
}

.policy-modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.policy-modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.policy-modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.policy-modal-body {
    padding: 30px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    line-height: 1.6;
    color: #333;
    word-break: keep-all;
    word-wrap: break-word;
}

.policy-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 정책 내용 스타일링 */
.policy-modal-body h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin: 25px 0 15px 0;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.policy-modal-body h5 {
    font-size: 16px;
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-weight: 600;
    border-left: 3px solid #2c3e50;
    padding-left: 12px;
}

.policy-modal-body h6 {
    font-size: 14px;
    color: #34495e;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.policy-modal-body p {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #4a4a4a;
}

.policy-modal-body .table-wrapper {
    margin: 25px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.policy-modal-body table.minimal-table,
.policy-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
    table-layout: fixed;
}

.policy-modal-body .privacy-table col:nth-child(1) { width: 14%; }
.policy-modal-body .privacy-table col:nth-child(2) { width: 18%; }
.policy-modal-body .privacy-table col:nth-child(3) { width: 10%; }
.policy-modal-body .privacy-table col:nth-child(4) { width: 33%; }
.policy-modal-body .privacy-table col:nth-child(5) { width: 25%; }

.policy-modal-body ul {
    margin: 12px 0 12px 20px;
    list-style-type: none;
}

.policy-modal-body ul li {
    margin-bottom: 8px;
    color: #4a4a4a;
    font-size: 12px;
    position: relative;
    padding-left: 12px;
    line-height: 1.5;
}

.policy-modal-body ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c3e50;
}

.policy-modal-body table th,
.policy-modal-body table td {
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
}

.policy-modal-body table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #2c3e50;
    font-size: 12px;
}

.policy-modal-body table td {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    vertical-align: middle;
}

.policy-modal-body .bullet-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.policy-modal-body .bullet-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #4a4a4a;
    gap: 8px;
    padding-left: 0;
}

.policy-modal-body .bullet-list li::before {
    content: "·";
    flex: 0 0 15px;
    position: static;
    color: inherit;
}

.policy-modal-body .bullet-content,
.policy-modal-body .text-content {
    flex: 1;
}

.policy-modal-body .divider {
    height: 20px;
    clear: both;
}

.policy-modal-body ol.policy-list {
    list-style: none;
    counter-reset: item;
    padding: 0;
    margin: 0 0 20px 0;
}

.policy-modal-body ol.policy-list > li {
    display: flex;
    margin-bottom: 12px;
    padding-left: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #4a4a4a;
}

.policy-modal-body ol.policy-list > li::before {
    content: counter(item) ". ";
    counter-increment: item;
    flex: 0 0 25px;
    color: #333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .policy-modal-dialog {
        width: 95%;
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }

    .policy-modal-header {
        padding: 15px 20px;
    }

    .policy-modal-title {
        font-size: 1.5rem;
    }

    .policy-modal-body {
        padding: 20px;
    }

    .policy-modal-body h3 {
        font-size: 16px;
    }

    .policy-modal-body h5 {
        font-size: 15px;
    }

    .policy-modal-body h6 {
        font-size: 13px;
    }

    .policy-modal-body p,
    .policy-modal-body li {
        font-size: 13px;
    }

    .policy-modal-body table th,
    .policy-modal-body table td {
        padding: 8px;
        font-size: 11px;
    }

    .policy-modal-body table td {
        word-break: break-word;
        white-space: normal;
    }
}
