/* Policy Modal Styles */

/* Read Label for Agreement Items */
.read-label {
    font-size: 12px;
    color: #999;
    font-style: italic;
    font-weight: 300;
    margin-right: 4px;
}

/* Agreement Section Margin */
.agreement-section {
    margin-top: 24px;
}

/* Business ID Upload Section */
.business-id-upload {
    margin-top: 16px;
    margin-bottom: 32px;
    padding-top: 12px;
}

.business-id-upload .upload-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.business-id-upload .upload-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.business-id-upload .upload-checkbox {
    display: flex;
    align-items: center;
    cursor: default;
    margin: 0;
}

.business-id-upload .upload-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: default;
}

.business-id-upload .upload-btn {
    padding: 8px 24px;
    background: #2d5016;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.business-id-upload .upload-btn:hover {
    background: #3d6a1e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.3);
}

.business-id-upload .uploaded-file-info {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f9fdf5;
    border-radius: 4px;
    border-left: 3px solid #2d5016;
    font-size: 13px;
    color: #555;
}

.business-id-upload .file-label {
    font-weight: 600;
    color: #2d5016;
    margin-right: 8px;
}

.business-id-upload .file-name {
    color: #333;
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Modal Overlay */
.policy-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.policy-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Container */
.policy-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.policy-modal-overlay.active .policy-modal {
    transform: scale(1);
}

/* Modal Header */
.policy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.policy-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d5016;
    margin: 0;
}

.policy-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.policy-modal-close:hover {
    background: #f8f8f8;
    color: #333;
}

/* Modal Content */
.policy-modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.policy-modal-content::-webkit-scrollbar {
    width: 8px;
}

.policy-modal-content::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 4px;
}

.policy-modal-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.policy-modal-content::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Policy Info */
.policy-info {
    background: #f9fdf5;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #666;
}

.policy-version {
    margin-bottom: 4px;
}

.policy-last-updated {
    margin: 0;
}

/* Policy Introduction */
.policy-introduction {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 4px;
    border-left: 3px solid #2d5016;
}

/* Policy Section */
.policy-section {
    margin-bottom: 32px;
}

.policy-section-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.policy-article {
    font-size: 15px;
    font-weight: 600;
    color: #2d5016;
}

.policy-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.policy-section-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
    padding-left: 16px;
}

/* Modal Footer */
.policy-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.policy-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.policy-btn-cancel {
    background: #f8f8f8;
    color: #666;
}

.policy-btn-cancel:hover {
    background: #e5e5e5;
    color: #333;
}

.policy-btn-agree {
    background: #2d5016;
    color: #fff;
}

.policy-btn-agree:hover {
    background: #3d6a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .policy-modal {
        width: 95%;
        max-height: 90vh;
    }

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

    .policy-modal-title {
        font-size: 18px;
    }

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

    .policy-section-content {
        font-size: 13px;
        padding-left: 12px;
    }

    .policy-modal-footer {
        padding: 12px 20px;
    }

    .policy-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}
/* ↓ 480px 앱 틀 기준 사본 (시안 A 2단계 · 2026-09-17) — 위 @media 와 같은 내용, PC 에서도 틀 안에 적용 */
@container wfapp (max-width: 768px) {
    .policy-modal {
        width: 95%;
        max-height: 90vh;
    }

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

    .policy-modal-title {
        font-size: 18px;
    }

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

    .policy-section-content {
        font-size: 13px;
        padding-left: 12px;
    }

    .policy-modal-footer {
        padding: 12px 20px;
    }

    .policy-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

