/* Policy popup page + overlay modal (이메 SITE.openPolicy 스타일) */
.page-policy-popup {
	margin: 0;
	background: #fff;
}

.tc2c-popup {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: #fff;
}

.tc2c-popup__header {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 56px;
	padding: 0 16px 0 20px;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
}

.tc2c-popup__title {
	margin: 0;
	font-family: var(--tc2c-font);
	font-size: 18px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.tc2c-popup__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #333;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.tc2c-popup__close:hover { color: #000; }

.tc2c-popup__main {
	flex: 1;
	padding: 20px 22px 32px;
	overflow: auto;
}

.tc2c-policy-body {
	font-family: var(--tc2c-font);
	font-size: 13px;
	line-height: 1.75;
	color: #333;
	word-break: break-word;
}

.tc2c-policy-body__empty {
	margin: 0;
	color: #666;
}

.tc2c-policy-body h1,
.tc2c-policy-body h2,
.tc2c-policy-body h3,
.tc2c-policy-body h4 {
	margin: 1.2em 0 .5em;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.4;
}

.tc2c-policy-body h1:first-child,
.tc2c-policy-body h2:first-child,
.tc2c-policy-body h3:first-child,
.tc2c-policy-body h4:first-child {
	margin-top: 0;
}

.tc2c-policy-body p { margin: 0 0 .75em; }
.tc2c-policy-body ul,
.tc2c-policy-body ol {
	margin: .5em 0 .75em;
	padding-left: 1.4em;
}
.tc2c-policy-body table {
	width: 100%;
	border-collapse: collapse;
	margin: .75em 0;
	font-size: 12px;
}
.tc2c-policy-body th,
.tc2c-policy-body td {
	border: 1px solid #e0e0e0;
	padding: .45rem .65rem;
	text-align: left;
}
.tc2c-policy-body th { background: #f8f9fa; font-weight: 600; }

/* Overlay modal */
.tc2c-policy-modal {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(0, 0, 0, .45);
}

.tc2c-policy-modal.is-open {
	display: flex;
}

.tc2c-policy-modal__dialog {
	display: flex;
	flex-direction: column;
	width: min(860px, 100%);
	max-height: min(82vh, 820px);
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
}

.tc2c-policy-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-shrink: 0;
	height: 56px;
	padding: 0 16px 0 22px;
	border-bottom: 1px solid #e5e5e5;
}

.tc2c-policy-modal__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #222;
}

.tc2c-policy-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #333;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.tc2c-policy-modal__body {
	flex: 1;
	padding: 20px 22px 28px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.tc2c-policy-modal__loading {
	margin: 0;
	color: #888;
	font-size: 14px;
}

@media (max-width: 640px) {
	.tc2c-policy-modal {
		padding: 0;
		align-items: stretch;
	}

	.tc2c-policy-modal__dialog {
		width: 100%;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}
}
