/* 모달 오버레이 */
.common-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.common-modal-overlay.show {
    opacity: 1;
}

/* 모달 컨테이너 */
.common-modal {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 95%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.common-modal.show {
    transform: translateY(0);
    opacity: 1;
}

/* 모달 크기 */
.common-modal-small {
    width: 450px;
}

.common-modal-medium {
    width: 700px;
}

.common-modal-large {
    width: 1000px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* 모달 헤더 */
.common-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.common-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.common-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    margin: 0;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.common-modal-close:hover {
    color: #374151;
    background-color: #f3f4f6;
}

/* 모달 콘텐츠 */
.common-modal-content {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
    flex: 1;
}

/* 모달 푸터 */
.common-modal-footer {
    padding: 20px 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 모달 버튼 */
.common-modal-button {
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.common-modal-button:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.common-modal-button-primary {
    background-color: var(--primary, #4263eb);
    color: white;
    border-color: var(--primary, #4263eb);
}

.common-modal-button-primary:hover {
    background-color: var(--primary-dark, #3653cc);
    border-color: var(--primary-dark, #3653cc);
}

/* 약관 및 개인정보 처리방침 스타일 */
.terms-content {
    color: #374151;
    line-height: 1.7;
    font-size: 15px;
}

.terms-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #d1d5db;
}

.terms-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
    text-align: center;
    font-style: italic;
}

.terms-section {
    margin-bottom: 32px;
    padding: 24px;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.terms-section h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    color: #374151;
}

.terms-section p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.terms-section ul, .terms-section ol {
    padding-left: 28px;
    margin-bottom: 20px;
}

.terms-section li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.terms-section li strong {
    color: #1f2937;
    font-weight: 600;
}

.privacy-contact {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
    border: 1px solid #e5e7eb;
}

.privacy-contact p {
    margin: 6px 0;
    font-size: 15px;
    color: #374151;
}

.privacy-contact p strong {
    color: #1f2937;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .common-modal-small,
    .common-modal-medium,
    .common-modal-large {
        width: 95%;
        max-width: 95vw;
        max-height: 90vh;
    }
    
    .common-modal-header {
        padding: 20px 24px;
    }
    
    .common-modal-content {
        padding: 24px;
        max-height: calc(90vh - 140px);
    }
    
    .common-modal-footer {
        padding: 16px 24px;
    }
    
    .terms-content h2 {
        font-size: 22px;
    }
    
    .terms-section {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .terms-section h3 {
        font-size: 18px;
    }
    
    .terms-section h4 {
        font-size: 16px;
    }
} 