/* 약관 페이지 - 좌측 탭 + 우측 본문 레이아웃 (Figma 스타일) */

.terms-main {
	position: relative;
    background: #ffffff;
	padding: 0; 
}
.terms-main:before {
	display: block; clear: both; content: ''; 
	position: absolute; top: 0; left: 50%; width: 50%; height: 100%; background: #F7F8F9; 
}
.terms-main.sub-main-with-footer-space {padding-bottom: 0 !important;}
.terms-container {
    max-width: 1320px;
    margin: 0 auto; height: 100%;
}
.terms-layout {
	position: relative; 
    display: grid;
    grid-template-columns: 312px minmax(0, 1fr);
	grid-template-rows: 1fr;
    gap: 24px;
    align-items: flex-start;
	min-height: 60dvh; 
}

.terms-sidebar {
    padding-top: 80px;
	padding-left: 16px; 
}

.terms-sidebar-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 24px;
}

.terms-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.terms-nav-item {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.terms-nav-item.is-active {
    color: var(--primary-color);
    font-weight: 600;
}

.terms-panel {
    padding-top: 80px;
	padding-left: 88px; 
	padding-right: 16px; 
	padding-bottom: 170px;
	height: 100%; 
	background: #F7F8F9; 
}

.terms-panel-header {
    margin-bottom: 16px;
}

.terms-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.terms-content {
    margin-top: 8px;
}

.terms-body {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

.terms-body p {
    margin-bottom: 1em;
}

.terms-body h2,
.terms-body h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1e293b;
}

.terms-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
}


@media (max-width: 768px) {
	.terms-main:before {
		display: none;
	}
    .terms-layout {
        grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
        gap: 24px;
    }
	.terms-sidebar {
		padding-top: 36px;
		padding-left: 16px; 
		padding-right: 16px; 
		height: auto; 
	}
	/* .terms-nav {flex-direction: row; flex-wrap: wrap; gap: 24px; } */
    .terms-panel {
        padding-top: 0;
		padding: 0 16px; 
    }
}
