/* 약관 모달 스타일 */
.terms-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.terms-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.terms-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.terms-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.terms-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.terms-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.terms-modal-close:hover {
    color: #333;
}

.terms-modal-body {
    padding: 30px;
}

.terms-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.terms-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
 
}

.terms-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.terms-content ul {
    margin:  0;
    padding-left: 20px;
}

.terms-content li {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
}

.terms-section {
    margin-bottom: 15px;
}

/* 약관 링크 스타일 */
.terms-link {
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.terms-link :a{
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #0052a3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .terms-modal {
        max-width: 95%;
        max-height: 95vh;
    }

    .terms-modal-header {
        padding: 15px 20px;
    }

    .terms-modal-title {
        font-size: 20px;
    }

    .terms-modal-body {
        padding: 20px;
    }

    .terms-content h2 {
        font-size: 18px;
    }

    .terms-content h3 {
        font-size: 15px;
    }
}

