/* Dots & Boxes - privacy policy, terms and data deletion pages (privacy.html, terms.html, delete-data.html). Standalone: not part of the game shell. */
:root {
	--bg-top: #1b1440;
	--bg-bottom: #0c0a1f;
	--panel: rgba(255, 255, 255, 0.06);
	--panel-border: rgba(255, 255, 255, 0.14);
	--text: #f4f1ff;
	--text-muted: #b0abd6;
	--accent: #8b6cff;
	--accent2: #29d3f5;
	--button-text: #ffffff;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--bg-top: #fbf7ee;
		--bg-bottom: #efe7d6;
		--panel: rgba(255, 255, 255, 0.78);
		--panel-border: rgba(60, 48, 30, 0.18);
		--text: #2a241b;
		--text-muted: #62584b;
		--accent: #5b3fd6;
		--accent2: #0a7f99;
		--button-text: #ffffff;
	}
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
	background-color: var(--bg-bottom);
	color: var(--text);
	font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.75;
}

.legal {
	max-width: 780px;
	margin: 0 auto;
	padding: 28px 16px 56px;
}

.legal-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.legal a.legal-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	text-decoration: none;
	font-family: "Lalezar", "Tajawal", system-ui, sans-serif;
	font-size: 26px;
	line-height: 1.2;
}

.legal-brand img {
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.legal-lang {
	appearance: none;
	border: 1.5px solid var(--panel-border);
	background: var(--panel);
	color: var(--text);
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	padding: 8px 18px;
	border-radius: 999px;
	cursor: pointer;
}

.legal-lang:hover,
.legal-lang:focus-visible {
	border-color: var(--accent);
	outline: none;
}

.legal-card {
	background: var(--panel);
	border: 1.5px solid var(--panel-border);
	border-radius: 24px;
	padding: 22px 22px 26px;
}

.legal h1 {
	font-family: "Lalezar", "Tajawal", system-ui, sans-serif;
	font-weight: 400;
	font-size: 38px;
	line-height: 1.25;
	margin: 0 0 4px;
}

.legal h2 {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.4;
	margin: 30px 0 8px;
	color: var(--accent2);
}

.legal p {
	margin: 0 0 12px;
}

.legal ul,
.legal ol {
	margin: 0 0 12px;
	padding-inline-start: 22px;
}

.legal li {
	margin-bottom: 6px;
}

.legal a {
	color: var(--accent2);
	overflow-wrap: anywhere;
}

.legal-date {
	color: var(--text-muted);
	font-size: 15px;
	margin-bottom: 18px;
}

.legal-summary {
	border-inline-start: 4px solid var(--accent);
	padding: 4px 14px;
	margin: 0 0 8px;
	color: var(--text);
	font-weight: 700;
}

.legal-foot {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 22px;
	font-size: 15px;
}

[lang][hidden] {
	display: none;
}

@media (max-width: 520px) {
	body {
		font-size: 16px;
	}

	.legal h1 {
		font-size: 31px;
	}

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