/* Shared styling for the halaplayer.com legal pages.
   Self-contained: no external fonts, no CDN, no trackers — the pages a privacy
   policy lives on should not themselves load third parties. */

:root {
	--bg: #0b0f14;
	--surface: #131a22;
	--surface-2: #1b242e;
	--line: #253039;
	--text: #e8eef4;
	--muted: #93a4b3;
	--accent: #2dd4bf;
	--accent-dim: #134e4a;
	--warn: #fbbf24;
	--max: 820px;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	padding: 0 20px;
}

[dir="rtl"] body,
body[dir="rtl"] {
	font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-block: 48px 96px; }

header.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-block: 8px 32px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 40px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text);
	text-decoration: none;
}

.brand .mark {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: linear-gradient(140deg, var(--accent), var(--accent-dim));
	display: grid;
	place-items: center;
	font-size: 17px;
	color: #05201d;
	font-weight: 800;
	flex: none;
}

.langs { display: flex; gap: 8px; }

.langs button {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 7px 16px;
	cursor: pointer;
	transition: color .15s, border-color .15s, background .15s;
}

.langs button:hover { color: var(--text); border-color: var(--muted); }

.langs button[aria-pressed="true"] {
	color: #05201d;
	background: var(--accent);
	border-color: var(--accent);
}

h1 {
	font-size: clamp(28px, 5vw, 38px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.updated {
	color: var(--muted);
	font-size: 14px;
	margin: 0 0 40px;
}

h2 {
	font-size: 20px;
	letter-spacing: -0.01em;
	margin: 40px 0 12px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 { font-size: 16px; margin: 24px 0 8px; color: var(--accent); }

p, li { color: #cfdae4; }

ul { padding-inline-start: 22px; }

li { margin-bottom: 8px; }

strong { color: var(--text); }

a { color: var(--accent); }

.callout {
	background: var(--surface);
	border: 1px solid var(--line);
	border-inline-start: 3px solid var(--accent);
	border-radius: 10px;
	padding: 18px 20px;
	margin: 24px 0;
}

.callout.warn { border-inline-start-color: var(--warn); }

.callout p { margin: 0; }

.callout p + p { margin-top: 10px; }

table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 15px;
}

th, td {
	text-align: start;
	padding: 12px 14px;
	border: 1px solid var(--line);
	vertical-align: top;
}

th { background: var(--surface-2); font-weight: 600; color: var(--text); }

td { background: var(--surface); color: #cfdae4; }

.tablewrap { overflow-x: auto; }

footer.bot {
	margin-top: 64px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: space-between;
}

footer.bot a { color: var(--muted); }

footer.bot a:hover { color: var(--accent); }

[lang]:not(.on) { display: none; }

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--bg: #f7f9fb;
		--surface: #fff;
		--surface-2: #eef2f6;
		--line: #dde5ec;
		--text: #0b0f14;
		--muted: #5b6c7b;
		--accent: #0d9488;
		--accent-dim: #5eead4;
	}
	:root:not([data-theme="dark"]) p,
	:root:not([data-theme="dark"]) li,
	:root:not([data-theme="dark"]) td { color: #33424f; }
	:root:not([data-theme="dark"]) .brand .mark { color: #fff; }
	:root:not([data-theme="dark"]) .langs button[aria-pressed="true"] { color: #fff; }
}
