/* 📁 src/main/resources/static/css/terms.css */

:root {
    --primary-color: #6C63FF;
    --bg-color: #f8f9fa;
    --text-main: #222;
    --text-sub: #666;
    --border-color: #eee;
    --white: #ffffff;
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.terms-container {
    width: 63rem; /* 좀 더 슬림하게 변경 */
    background: var(--white);
    border-radius: 24px; /* 더 둥글게 */
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* 부드러운 그림자 */
    padding: 50px 40px;
}

.terms-title {
    font-size: 24px;
    font-weight: 800;
    text-align: left; /* 왼쪽 정렬이 더 트렌디함 */
    margin-bottom: 8px;
    color: var(--text-main);
}

.terms-subtitle {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 40px;
}

/* 전체 동의 섹션 */
.all-agree-box {
    background: #f1f3ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.all-agree-box:hover {
    background: #e8ebff;
}

/* 체크박스 커스텀 느낌 주기 */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.terms-box {
    margin-bottom: 25px;
}

.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.terms-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.scroll-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    height: 120px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
    background: #fff;
}

/* 스크롤바 커스텀 */
.scroll-box::-webkit-scrollbar {
    width: 4px;
}
.scroll-box::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
}

.terms-actions {
    display: flex;
    flex-direction: column; /* 버튼을 세로로 배치하거나 넓게 */
    gap: 12px;
    margin-top: 40px;
}

.agree-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.agree-btn:hover {
    background: #5b54e0;
    transform: translateY(-2px);
}

.agree-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cancel-btn {
    text-align: center;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
}

.cancel-btn:hover {
    text-decoration: underline;
}