* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
	color: #111917;
}

html {
	overflow-y: scroll;
}

.site-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 34px;
}

.site-topbar-logo {
	display: flex;
	align-items: center;
}

.site-topbar-logo img {
	height: 24px;
	width: auto;
	display: block;
}

.lang-switcher {
	position: relative;
	z-index: 20;
	font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}

.lang-switcher-toggle {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	padding: 0 12px 0 14px;
	border-radius: 999px;
	border: 1px solid rgba(226, 232, 226, 0.9);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06), 0 10px 24px rgba(18, 28, 24, 0.08);
	color: #111917;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.lang-switcher-toggle:hover {
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08), 0 14px 30px rgba(18, 28, 24, 0.12);
}

.lang-flag {
	display: inline-flex;
	flex-shrink: 0;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-flag svg {
	display: block;
	width: 100%;
	height: 100%;
}

.lang-switcher-toggle .lang-chevron {
	width: 12px;
	height: 12px;
	color: #6b746f;
	transition: transform 0.15s ease;
	flex-shrink: 0;
}

.lang-switcher[data-open="true"] .lang-switcher-toggle .lang-chevron {
	transform: rotate(180deg);
}

.lang-switcher-menu {
	list-style: none;
	margin: 8px 0 0;
	padding: 6px;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 170px;
	border-radius: 16px;
	border: 1px solid rgba(226, 232, 226, 0.9);
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06), 0 20px 46px rgba(18, 28, 24, 0.14);
	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 0.12s ease, transform 0.12s ease;
}

.lang-switcher[data-open="true"] .lang-switcher-menu {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.lang-switcher-menu li + li {
	margin-top: 2px;
}

.lang-switcher-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 10px;
	color: #111917;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.lang-switcher-menu a:hover {
	background: #f2f5f2;
}

.lang-switcher-menu a[aria-current="true"] {
	background: rgba(31, 122, 31, 0.1);
	color: #1f7a1f;
}

.lang-switcher-menu .lang-check {
	margin-left: auto;
	width: 14px;
	height: 14px;
	color: #1f7a1f;
	flex-shrink: 0;
}

body {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	padding: 32px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background:
		radial-gradient(circle at 80% 20%, rgba(31, 122, 31, 0.18), transparent 34%),
		linear-gradient(180deg, #fbfcf8 0%, #eef3ec 100%);
}

.auth-shell {
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.auth-card {
	position: relative;
	margin-top: auto;
	margin-bottom: auto;
	padding: 42px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(226, 232, 226, 0.9);
	box-shadow:
		0 2px 8px rgba(16, 24, 40, 0.04),
		0 30px 80px rgba(18, 28, 24, 0.12);
	backdrop-filter: blur(18px);
	overflow: hidden;
}

.auth-card:before {
	content: "";
	position: absolute;
	right: -70px;
	top: -70px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(31, 122, 31, 0.1);
}

.auth-eyebrow {
	margin: 0 0 14px;
	color: #1f7a1f;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.auth-card h1 {
	margin: 0;
	font-size: 38px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.055em;
	color: #111917;
}

.auth-texts {
	padding-bottom: 30px;
}

.auth-text {
	margin: 10px 0 0 0;
	color: #5b6763;
	font-size: 16px;
	line-height: 1.7;
}

.auth-card label {
	display: block;
	margin-bottom: 9px;
	font-size: 14px;
	font-weight: 750;
	color: #17201e;
}

.auth-card input {
	width: 100%;
	height: 56px;
	padding: 0 16px;
	border-radius: 16px;
	border: 1px solid #d7ddd7;
	background: #ffffff;
	color: #111917;
	font-size: 16px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card input:focus {
	border-color: #1f7a1f;
	box-shadow: 0 0 0 4px rgba(31, 122, 31, 0.12);
}

.auth-success {
	background: rgba(36, 140, 33, 0.08);
	border: 1px solid rgba(36, 140, 33, 0.18);
	color: #248c21;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	padding: 14px 16px;
	border-radius: 14px;
	margin-bottom: 18px;
	backdrop-filter: blur(8px);
}

.auth-error {
	margin: 0 0 18px;
	padding: 13px 15px;
	border-radius: 14px;
	background: #fff4f2;
	border: 1px solid #ffd8d2;
	color: #9d2d20;
	font-size: 14px;
	line-height: 1.5;
}

.auth-card button {
	width: 100%;
	height: 56px;
	margin-top: 18px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(180deg, #238523 0%, #1d6d1d 100%);
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 14px 34px rgba(31, 122, 31, 0.22);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-card button:hover {
	transform: translateY(-1px);
	box-shadow: 0 20px 42px rgba(31, 122, 31, 0.28);
}

.auth-note {
	margin: 22px 0 0;
	color: #7a8581;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

.auth-note a {
	text-decoration: none;
	color: #1e721e;
	font-weight: 600;
}

.early-access-link {
	font-size: 12px;
	text-align: right;
	padding-top: 17px;
}

.early-access-link a {
	color: #333333;
	text-decoration: none;
}

.early-access-link a:hover {
	color: #111111;
}

.backto-link {
	font-size: 12px;
	text-align: left;
	padding-top: 17px;
}

.backto-link a {
	color: #333333;
	text-decoration: none;
}

.backto-link a:hover {
	color: #111111;
}

.legal-shell {
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
}

.legal-breadcrumb {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 24px 18px 53px;
	font-size: 13px;
	color: #6b746f;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.legal-breadcrumb a {
	color: #6b746f;
	text-decoration: none;
}

.legal-breadcrumb a:hover {
	color: #1f7a1f;
	text-decoration: underline;
}

.legal-breadcrumb .sep {
	color: #b7c0bb;
}

.legal-breadcrumb .current {
	color: #111917;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 60vw;
}

.legal-card {
	background: #ffffff;
	border-radius: 26px;
	border: 1px solid #eceee8;
	box-shadow:
		0 2px 6px rgba(16, 24, 40, 0.03),
		0 24px 60px rgba(16, 24, 40, 0.08);
	padding: 52px;
	font-size: 16px;
	line-height: 1.7;
}

.legal-card .eyebrow {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1f7a1f;
}

.legal-card h1 {
	margin: 0;
	font-size: 46px;
	line-height: 1.2;
	font-weight: 750;
	letter-spacing: -0.055em;
	color: #111917;
}

.legal-card .legal-updated {
	margin: 0;
	color: #5b6763;
}

.legal-card .intro {
	margin: 22px 0 0;
	max-width: 680px;
	font-size: 17px;
	line-height: 1.75;
	color: #5b6763;
}

.legal-card section {
	margin-top: 34px;
}

.legal-card h2 {
	margin: 0 0 12px;
	font-size: 19px;
	line-height: 1.35;
	font-weight: 750;
	letter-spacing: -0.035em;
	color: #111917;
}

.legal-card p,
.legal-card li {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.8;
	color: #4f5c58;
	word-break: break-word;
}

.legal-card a {
	color: #1f7a1f;
	font-weight: 700;
	text-decoration: none;
}

.legal-card a:hover {
	text-decoration: underline;
}

.legal-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.legal-table th,
.legal-table td {
	text-align: left;
	padding: 10px 12px;
	border: 1px solid #e2e8e2;
	font-size: 14px;
	vertical-align: top;
}

.legal-table th {
	background: #f2f5f2;
}

.legal-card address {
	font-style: normal;
	line-height: 1.7;
	margin: 12px 0;
}

.legal-card h3 {
	margin: 18px 0 6px;
	font-size: 15px;
}

.legal-home-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
	font-size: 13px;
	color: #6b746f;
	text-decoration: none;
}

.legal-home-link:hover {
	color: #1f7a1f;
}

.legal-home-link svg {
	flex-shrink: 0;
}

.legal-footer {
	max-width: 720px;
	margin: 24px auto 0;
	padding: 24px 24px 40px;
	font-size: 12px;
	line-height: 1.6;
	color: #8a938e;
	text-align: center;
	border-top: 1px solid #eceee8;
}

@media (max-width: 640px) {
	body {
		padding: 22px;
	}

	.lang-switcher-toggle {
		height: 28px;
		padding: 0 9px 0 10px;
		gap: 5px;
		font-size: 12px;
	}

	.lang-flag {
		width: 17px;
		height: 12px;
	}

	.lang-chevron {
		width: 10px;
		height: 10px;
	}

	.lang-switcher-code {
		display: none;
	}

	.site-topbar {
		margin-bottom: 18px;
	}

	.site-topbar-logo img {
		height: 18px;
	}
}

@media (max-width: 768px) {
	.legal-breadcrumb {
		padding-left: 25px;
	}

	.legal-card {
		padding: 34px 24px;
		border-radius: 24px;
	}

	.legal-card h1 {
		font-size: 38px;
	}

	.legal-card .intro {
		font-size: 16px;
	}
}

@media (max-width: 640px) {
	.legal-breadcrumb {
		padding: 0 18px 14px 25px;
		font-size: 12px;
	}

	.legal-card {
		font-size: 15px;
		line-height: 1.65;
	}

	.legal-card h1 {
		font-size: 26px;
	}

	.legal-card h2 {
		font-size: 17px;
	}

	.legal-table th,
	.legal-table td {
		padding: 8px;
		font-size: 13px;
	}

	.legal-footer {
		padding: 20px 18px 32px;
	}
}

@media (max-width: 520px) {
	.auth-card {
		padding: 32px 24px;
		border-radius: 24px;
	}

	.auth-card h1 {
		font-size: 32px;
	}
}
