/**
 * 공통 푸터 (templates/thymeleaf/common/footer.html) — KRDS 푸터 + 운영기관 식별자
 *
 * 데스크톱 2줄(56px): 1행 주소·대표전화 | 정책 링크, 2행 운영기관 식별자(남양주시 심벌) + 저작권.
 *  - 높이는 common.css :root 의 --footer-height 하나로 고정한다. 본문 높이를 잡는 규칙들이 이 값을 빼서 계산한다.
 *  - min-width 는 #gnb 와 같은 분기(1800px 초과에서만 1800px, 이하에서는 0)로 맞춘다.
 *  - 배경은 본문(#wrapper)과 같은 색. 메인은 main.css 에서 #E9F2FF 로 덮어씀.
 *  - 글자는 항목 구분 없이 폰트·색·크기 동일. 개인정보처리방침만 KRDS 규정대로 굵게 강조.
 *  - 모든 규칙을 #site-footer 아래로만 한정한다.
 */
#site-footer {
	position: relative;
	clear: both;
	margin-top: 16px; /* 본문과 푸터 사이 여백. 화면을 꽉 채우는 페이지들은 높이 계산식에서 이 값을 뺀다 */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px 0;
	width: 100%;
	min-width: 1800px;
	height: var(--footer-height);
	box-sizing: border-box;
	padding-inline: 40px;
	background: #EDF3FC;
	color: #5d636c;
	font-family: var(--nexon);
	font-size: 12px;
	font-weight: var(--fontweight-regular);
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
}

#site-footer .sf-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0 14px;
	width: 100%;
	max-width: 1840px;
}

#site-footer address {
	display: inline-flex;
	align-items: center;
	gap: 0 14px;
	font-style: normal;
}

#site-footer .sf-label {
	margin-right: 4px;
}

#site-footer a {
	color: inherit;
	text-decoration: none;
}
#site-footer a:hover,
#site-footer a:focus-visible {
	text-decoration: underline;
}

/* 정책 링크: 주소 그룹과 세로선으로 구분 */
#site-footer .sf-policy {
	display: inline-flex;
	align-items: center;
	gap: 0 12px;
	margin-left: 6px;
	padding-left: 20px;
	border-left: 1px solid #c9d3e3;
}

/* 개인정보처리방침: 다른 고지와 구분되도록 강조(KRDS·개인정보보호법 안내) */
#site-footer .sf-policy .sf-em {
	font-weight: var(--fontweight-bold);
	color: #272f3c;
}

/* 운영기관 식별자: 푸터 마지막 구획 */
#site-footer .krds-identifier {
	gap: 0 18px;
	color: #6f7784;
}
#site-footer .krds-identifier-logo {
	width: auto;
	height: 18px;
}

/* 넥슨 웹폰트에는 © 글리프가 없어 빈 칸으로 보인다. 이 기호 한 글자만 기본 폰트로(크기·색은 동일) */
#site-footer .sf-sym {
	font-family: Arial, sans-serif;
}

/* 1800px 이하: 헤더(#gnb)와 동일하게 최소 폭 해제 → 뷰포트 폭에 맞춰 가운데 정렬, 가로 스크롤 없음 */
@media (max-width: 1800px) {
	#site-footer {
		min-width: 0;
		padding-inline: 16px;
	}
}

/* 모바일: 페이지가 어차피 스크롤되므로 높이를 풀고 여러 줄 허용 */
@media (max-width: 1024px) {
	#site-footer {
		height: auto;
		gap: 10px 0;
		padding-block: 12px;
		font-size: 11px;
		line-height: 1.4;
		white-space: normal;
		overflow: visible;
	}
	#site-footer .sf-row {
		flex-wrap: wrap;
		gap: 6px 10px;
	}
	#site-footer address {
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 10px;
		text-align: center;
	}
	#site-footer .sf-policy {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
		flex-basis: 100%;
		justify-content: center;
	}
	#site-footer .krds-identifier {
		flex-direction: column;
		gap: 4px 0;
		text-align: center;
	}
}
