:root {
	color-scheme: dark;
	--bg: #1c1917;
	--card: #292524;
	--text: #f5f5f4;
	--muted: #a8a29e;
	--border: #44403c;
	--accent: #d97706;
	--accent-hover: #f59e0b;
	--link: #38bdf8;
	--link-hover: #7dd3fc;
	--danger-bg: #450a0a;
	--danger-border: #ef4444;
	--danger-text: #fecaca;
	--shadow: rgba(68, 64, 60, 0.22);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", sans-serif;
	line-height: 1.6;
}

a {
	color: var(--link);
	text-decoration: none;
}

a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

.legal-container {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 20px;
}

.legal-container.legal-container--wide {
	max-width: 860px;
}

.legal-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 10px 30px var(--shadow);
}

.legal-domain {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 10px;
	font-size: 0.9rem;
	font-weight: 600;
	background: #78350f;
	color: var(--text);
	border-radius: 999px;
}

.legal-card h1 {
	margin: 0 0 12px;
	font-size: 2rem;
	line-height: 1.2;
}

.legal-card h2 {
	margin-top: 32px;
	margin-bottom: 12px;
	font-size: 1.25rem;
	line-height: 1.3;
}

.legal-card p {
	margin: 0 0 16px;
	color: var(--muted);
}

.legal-card ol,
.legal-card ul {
	margin: 0 0 16px 22px;
	padding: 0;
	color: var(--text);
}

.legal-card li {
	margin-bottom: 10px;
}

.legal-note {
	margin-top: 20px;
	padding: 16px 18px;
	border: 1px solid var(--danger-border);
	background: var(--danger-bg);
	color: var(--danger-text);
	border-radius: 14px;
}

.legal-footer {
	margin-top: 24px;
	font-size: 0.95rem;
	color: var(--muted);
}

.legal-content {
	margin-top: 12px;
}

[data-custom-class="body"],
[data-custom-class="body"] * {
	background: transparent !important;
}

.legal-content [data-custom-class="body"],
.legal-content [data-custom-class="body"] * {
	background: transparent !important;
	color: var(--muted) !important;
}

.legal-content [data-custom-class="title"],
.legal-content [data-custom-class="title"] * {
	font-size: 28px !important;
	font-weight: 700 !important;
	color: var(--text) !important;
}

.legal-content [data-custom-class="subtitle"],
.legal-content [data-custom-class="subtitle"] * {
	color: var(--muted) !important;
}

.legal-content [data-custom-class="heading_1"],
.legal-content [data-custom-class="heading_1"] * {
	font-size: 20px !important;
	font-weight: 600 !important;
	margin-top: 28px !important;
	color: var(--text) !important;
}

.legal-content [data-custom-class="heading_2"],
.legal-content [data-custom-class="heading_2"] * {
	font-size: 17px !important;
	font-weight: 600 !important;
	margin-top: 20px !important;
	color: var(--text) !important;
}

.legal-content [data-custom-class="body_text"],
.legal-content [data-custom-class="body_text"] * {
	color: var(--muted) !important;
	font-size: 15px !important;
}

.legal-content [data-custom-class="link"],
.legal-content [data-custom-class="link"] * {
	color: var(--link) !important;
}

.legal-content ul {
	list-style-type: square;
}

.legal-content ul > li > ul {
	list-style-type: circle;
}

.legal-content ul > li > ul > li > ul {
	list-style-type: square;
}

.legal-content ol li {
	font-family: Arial, sans-serif;
}

@media (max-width: 640px) {
	.legal-container {
		padding: 24px 14px;
	}

	.legal-card {
		padding: 22px;
		border-radius: 16px;
	}

	.legal-card h1 {
		font-size: 1.7rem;
	}
}
