:root {
	color-scheme: light;
	--legal-ink: #171719;
	--legal-body: #474747;
	--legal-control-ink: #191f28;
	--legal-line: #e5e8eb;
	--legal-surface: #ffffff;
	background: var(--legal-surface);
	font-family: "Pretendard JP", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	word-break: keep-all;
	overflow-wrap: break-word;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	background: var(--legal-surface);
	color: var(--legal-ink);
}

a {
	color: inherit;
}

.legal-frame {
	width: min(100%, 375px);
	min-height: 100dvh;
	margin: 0 auto;
	background: var(--legal-surface);
}

.legal-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	height: 64px;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(24px);
}

.legal-nav__inner {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 40px;
	align-items: center;
	width: 100%;
	height: 64px;
	padding: 0 7px 0 15px;
}

.legal-nav__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	text-decoration: none;
}

.legal-nav__action:first-child {
	justify-content: flex-start;
}

.legal-nav__action:last-child {
	justify-content: flex-end;
}

.legal-nav__action:focus-visible,
.legal-version select:focus-visible {
	outline: 2px solid #0066ff;
	outline-offset: 2px;
}

.legal-nav__action img {
	display: block;
	flex: 0 0 auto;
}

.legal-nav__action:first-child img {
	width: 12px;
	height: 24px;
}

.legal-nav__action:last-child img {
	width: 24px;
	height: 24px;
}

.legal-nav__title {
	min-width: 0;
	margin: 0 0 0 -12px;
	font-size: 20px;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: -0.24px;
	white-space: nowrap;
}

.legal-main {
	display: grid;
	gap: 24px;
	width: 100%;
	padding: 24px 15px 64px;
}

.legal-title {
	margin: 0;
	color: #000000;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.358;
	letter-spacing: -0.6608px;
}

.legal-version {
	position: relative;
	width: 100%;
	height: 48px;
}

.legal-version select {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 50px 0 15px;
	appearance: none;
	border: 1px solid var(--legal-line);
	border-radius: 0;
	background: var(--legal-surface);
	color: var(--legal-control-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.144px;
	cursor: pointer;
}

.legal-version img {
	position: absolute;
	top: 50%;
	right: 15px;
	display: block;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	pointer-events: none;
}

.legal-sections {
	display: grid;
	gap: 16px;
}

.legal-section,
.legal-section__body {
	display: grid;
	gap: 0;
}

.legal-section h2,
.legal-section p,
.legal-section ul {
	margin: 0;
	color: var(--legal-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.144px;
}

.legal-section ul {
	display: grid;
	gap: 0;
	padding: 0;
	list-style: none;
}

.legal-section li {
	position: relative;
	padding-left: 12px;
}

.legal-section li::before {
	position: absolute;
	left: 0;
	content: "-";
}

.legal-section__body > * + * {
	margin-top: 16px;
}

.legal-section a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (orientation: landscape) and (min-width: 600px) and (max-height: 600px) {
	.legal-frame {
		width: 100%;
		max-width: none;
	}
}

@media (max-width: 339px) {
	.legal-nav__title {
		font-size: 18px;
		line-height: 26px;
	}

	.legal-title {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.legal-nav {
		backdrop-filter: none;
	}
}
