.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-family: 'Noto Sans KR', sans-serif;
}

.terms-modal.show {
    display: flex;
    opacity: 1;
}

.terms-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.terms-modal.show .terms-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.terms-modal h2 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.terms-content {
    max-height: calc(80vh - 200px);
    overflow-y: auto;
    margin: 20px 0;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 8px;
    line-height: 1.7;
    font-size: 15px;
    color: #444;
    font-weight: 400;
}

.terms-checkbox {
    margin-top: 15px;
    text-align: center;
}

.terms-checkbox label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-buttons {
    text-align: center;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.terms-buttons button {
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.terms-buttons .button-primary {
    background-color: #1a73e8;
    color: white;
    flex: 1;
    max-width: 200px;
}

.terms-buttons .button-primary:hover {
    background-color: #1666d0;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
}

.terms-buttons .button-primary:disabled {
    background-color: #a9c8f5;
    color: #f1f1f1;
    cursor: not-allowed;
    box-shadow: none;
}

.terms-buttons .button {
    background-color: #f1f1f1;
    color: #444;
    flex: 1;
    max-width: 200px;
}

.terms-buttons .button:hover {
    background-color: #e1e1e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 스크롤바 스타일 */
.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 8px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
} 