/* 푸터 스타일 */

.section-footer {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: 80px;
	padding-bottom: 30px;
	height: 100%;
}

.footer-top-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.footer-logo {
	width: 190px;
	height: 23px;
}

.footer-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.footer-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 63px;
}

.footer-product-links {
	display: flex;
	gap: 63px;
	align-items: center;
}

.footer-link-label {
	color: var(--bg-white);
	white-space: nowrap;
}

.footer-link-item {
	color: var(--text-tertiary);
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}

.footer-pricing-link {
	color: var(--bg-white);
	text-decoration: none;
	white-space: nowrap;
	margin-left: 17px;
}

.footer-contact {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	white-space: nowrap;
}

.footer-contact-text {
	color: var(--bg-white);
	word-wrap: break-word; /* inline legacy */
}

.footer-bottom-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 100px;
}

.footer-copyright {
	color: var(--text-tertiary);
}

.footer-terms {
	text-align: right;
	color: var(--text-tertiary);
	display: flex;
	gap: 25px;
}

/* 푸터 */

.site-footer {
	width: 100%;
	height: 300px;
	display: flex;
	justify-content: center;
	background: #222222;
	position: relative;
}

/* 모바일 줄바꿈 태그 - 데스크탑에서는 미작동 */
br.newline-tablet {
	display: none;
}

br.newline-mobile {
	display: none;
}

/* ==========================================
   반응형 줄바꿈
========================================== */

@media (max-width: 1023px) {
	br.newline-only-desktop {
		display: none;
	}

	br.newline-tablet {
		display: block;
	}
}
@media (max-width: 767px) {
	br.newline-mobile {
		display: block;
	}
}

/* ==========================================
   반응형 푸터
========================================== */

/* 태블릿 & 모바일 (1023px 이하) */
@media (max-width: 1023px) {
	.site-footer {
		height: auto;
	}

	.section-footer {
		padding-top: 50px !important;
		padding-bottom: 50px !important;
		gap: 60px;
	}

	/* 상단 행: 로고와 모든 링크를 세로 스택, 좌측 정렬 */
	.footer-top-row {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 50px;
		text-align: left;
	}

	.footer-logo {
		width: 150px !important;
		height: 18px !important;
		margin: 0;
	}

	/* 네비게이션: 세로 스택, 좌측 정렬 */
	.footer-nav {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 30px !important;
		width: 100%;
	}

	/* 상품 링크: 가로 스택 */
	.footer-product-links {
		flex-direction: row !important;
		align-items: center !important;
		gap: 20px !important;
		flex-wrap: wrap;
	}

	.footer-product-links a {
		color: var(--text-tertiary) !important;
	}

	/* 이용요금 */
	.footer-nav > a {
		margin-left: 0 !important;
	}

	/* 하단 행: 약관 위, 저작권 아래, 좌측 정렬 */
	.footer-bottom-row {
		flex-direction: column-reverse !important;
		align-items: flex-start !important;
		gap: 40px !important;
		text-align: left;
	}

	/* 약관 링크: 2x2 그리드 배열 */
	.footer-terms {
		display: grid !important;
		grid-template-rows: auto auto;
		grid-auto-flow: column;
		gap: 15px 30px !important;
		text-align: left !important;
	}

	.footer-terms span {
		display: none; /* 구분선 제거 */
	}
}
