@charset "utf-8";

/* ===========================
   이용약관/개인정보 모달
=========================== */
.terms-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9000;
}

.terms-overlay.active {
    display: block;
}

.terms-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, calc(100% - 40px));
    height: min(400px, calc(100% - 40px));
    background: #fff;
    border-radius: 30px;
    z-index: 9001;
    overflow: hidden;
    flex-direction: column;
    padding: 48px 52px;
}

.terms-modal.active {
    display: flex;
}

/* X 닫기 버튼 - 우상단 고정 */
.terms-modal-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}

.terms-modal-close:hover {
    color: #000;
}

/* 타이틀 */
.terms-modal-title {
    text-align: center;
    color: #4D3621;
    margin-bottom: 32px;
}

/* 스크롤 영역 + 화살표 감싸는 박스 */
.terms-scroll-wrap {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 스크롤 본문 */
.terms-modal-body {
    height: 250px;
    overflow-y: scroll;
    padding: 24px 28px;
}


/* 텍스트 */
.terms-content p {
    color:#8C8C8C;
    line-height: 2;
    margin-bottom: 20px;
    font-size: 15px;
}

.terms-content p:last-child {
    margin-bottom: 0;
}

/* 화살표 버튼 */
.terms-arrow {
    position: absolute;
    right: -1px;
    width: 36px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    transition: background 0.2s;
    z-index: 1;
}

.terms-arrow:hover {
    background: #f5f5f5;
}

.terms-arrow-up {
    top: -1px;
    height: 50%;
    border-bottom: 1px solid #ccc;
    border-radius: 0 4px 0 0;
}

.terms-arrow-down {
    bottom: -1px;
    height: 50%;
    border-radius: 0 0 4px 0;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 767px) {
    .terms-modal {
        padding: 36px 24px;
    }

    .terms-modal-body {
        height: 260px;
    }
}