@charset "UTF-8";

.policy {
	width: min(800px, 100% - 32px);
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: #fff;
	color: var(--text-color);
	overflow: hidden;
}

.policy[open] {
	animation: policy-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.policy::backdrop {
	background: rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

@keyframes policy-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

html.is-policy {
	overflow: hidden;
}

.policy_card {
	display: flex;
	flex-direction: column;
	max-height: min(80vh, 880px);
	max-height: min(80dvh, 880px);
}

.policy_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex: none;
	padding: 32px 40px 24px;
	border-bottom: 1px solid var(--line-color);
}

.policy_tit {
	font-size: var(--fs-h5);
	line-height: 1;
	font-weight: 700;
	color: var(--title-color);
}

.policy_close {
	position: relative;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--title-color);
	transition: transform 0.3s;
}

.policy_close::before,
.policy_close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 4px;
	width: 24px;
	height: 2px;
	background: currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.policy_close::after {
	transform: translateY(-50%) rotate(-45deg);
}

.policy_close:hover {
	transform: rotate(90deg);
}

.policy_body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 32px 40px;
	font-size: 15px;
	line-height: 24px;
	word-break: keep-all;
}

.policy_body:focus-visible {
	outline-offset: -4px;
}

.policy_body h4 {
	margin: 32px 0 8px;
	font-size: var(--fs-body);
	line-height: 24px;
	font-weight: 700;
	color: var(--title-color);
}

.policy_body h4:first-child {
	margin-top: 0;
}

.policy_body p + p {
	margin-top: 8px;
}

.policy_body ol,
.policy_body ul {
	margin: 8px 0;
	padding-left: 20px;
}

.policy_body ol {
	list-style: decimal;
}

.policy_body ul {
	list-style: disc;
}

.policy_body li + li {
	margin-top: 4px;
}

.policy_body .policy_lead {
	padding: 24px;
	border-radius: 16px;
	background: var(--surface-color);
	font-weight: 700;
	color: var(--title-color);
}

.policy_body .policy_lead + p {
	margin-top: 16px;
}

.policy_foot {
	display: flex;
	justify-content: center;
	flex: none;
	padding: 24px 40px 32px;
	border-top: 1px solid var(--line-color);
}

.policy_foot .btn {
	min-width: 160px;
}

@media (max-width: 768px) {
	.policy {
		border-radius: 16px;
	}

	.policy_head {
		padding: 24px 24px 16px;
	}

	.policy_body {
		padding: 24px;
		font-size: 14px;
		line-height: 22px;
	}

	.policy_foot {
		padding: 16px 24px 24px;
	}

	.policy_foot .btn {
		width: 100%;
	}
}
