@charset "utf-8";
/* 약관 모달 스타일 */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.terms-modal.active {
    display: flex;
}

.terms-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.terms-modal__container {
    position: relative;
    width: 90%;
    max-width: 950px;
    max-height: 90vh;
    background-color: var(--color-bg-default);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.terms-modal__container.table-modal {
    max-width: 900px;
}

.terms-modal__header {
    padding: 24px 24px 20px;
    flex-shrink: 0;
}

.terms-modal__header-content {
    flex: 1;
    width: 100%;
}

.terms-modal__title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 150%;
    color: var(--color-text-bold);
}

.terms-modal__subtitle {
    margin-top: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: -1%;
    color: var(--color-text);
}
.terms-modal__header-close {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
}
.terms-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: color 0.3s ease;
    margin-top: 4px;
}

.terms-modal__close:hover {
    color: var(--color-text-bold);
}

.terms-modal__body {
    flex: 1;
    overflow: auto;
    padding: 0 24px;
    min-height: 0;
}

.terms-modal__content {
    width: 100%;
}

.terms-modal__loading,
.terms-modal__error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    font-size: 1rem;
    color: var(--color-text);
    text-align: center;
}

.terms-modal__error {
    color: var(--accent-red-500);
    line-height: 1.6;
}

.terms-modal__footer {
    padding: 16px 24px;
    flex-shrink: 0;
}

.terms-modal__confirm {
    width: 100%;
}

/* 모바일 모달 스타일 */
@media (max-width: 768px) {
    .terms-modal__container {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
    }

    .terms-modal__header {
        padding: 16px 20px;
    }

    .terms-modal__footer {
        padding: 12px 20px;
    }

    .terms-modal__body {
        padding: 16px 20px;
    }

    .terms-modal__content,
    .terms-modal__loading,
    .terms-modal__error {
        min-height: 300px;
    }
}
