/* Root design tokens copied from main styles.css for visual consistency */
:root {
		--background-overlay: rgba(255, 255, 255, 0.1);
		--background-overlay-strong: rgba(255, 255, 255, 0.33);
		--background-pagination: rgba(0, 0, 0, 0.6);
		--background-overlay-hover: rgba(255, 255, 255, 0.4);
		--background-overlay-select: rgba(0, 0, 0, 0.75);
		--text-main: #fff;
		--text-shadow: 0 0 1px black;
		--box-shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
		--box-shadow-select: 0 0 5px rgba(0, 0, 0, 0.5);
		--accent: #ffffff80;
		--smoke-bg: rgba(0, 0, 0, 0.5);
		--space-xs: 0.5rem;
		--space-sm: 1rem;
		--space-md: 2rem;
		--space-lg: 3rem;
		--space-xl: 4rem;
		--ease-spring-4: cubic-bezier(0.22, 1, 0.36, 1);
		--pos: #2ed336;
		--neg: #f44040;
		--neu: #2469d7;
}

body {
		background-image: url("imgs/cs2_bg_dark2.png");
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
		background-attachment: fixed;
		font-family: "Roboto", Arial, Helvetica, sans-serif;
		color: var(--text-main);
		margin: 0;
}

/* Privacy page layout */
.privacy-wrapper { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.privacy-wrapper h1 { font-size: 2.25rem; margin-bottom: 0.25rem; }
.privacy-wrapper h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.muted { color: #bbb; font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Content cards */
.card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 1.5rem; border-radius: 12px; margin-top: 1rem; line-height: 1.5; }
.card ul { margin: 0.75rem 0 0 1.2rem; padding: 0; }
.card li { margin: 0.35rem 0; }

.small { font-size: 0.8rem; opacity: 0.8; }

/* Links */
.privacy-wrapper a { color: #4dafff; text-decoration: none; }
.privacy-wrapper a:hover { text-decoration: underline; }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 2.5rem; text-decoration: none; color: #fff; font-weight: 600; font-size: 0.95rem; }
.back-link:hover { text-decoration: underline; }

/* Footer adjustments (reuse existing footer styles if present; these act as fallbacks) */
.site-footer { position: relative; width: 100%; background: var(--background-overlay); border-top: 1px solid var(--background-overlay); -webkit-backdrop-filter: blur(0.75rem); backdrop-filter: blur(0.75rem); padding: 2rem 1rem; box-sizing: border-box; }
.site-footer .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.site-footer a { color: #4dafff; }
.site-footer a:hover { text-decoration: underline; }

.container{
    margin-bottom: 0;
}

/* Mobile & small screen adjustments */
@media (max-width: 768px) {
	body { -webkit-text-size-adjust: 100%; }
	/* Override index mobile rule that hides .container */
	.container { display: flex !important; flex-direction: column !important; }
	/* Eliminate horizontal overflow */
	html, body { width:100%; overflow-x:hidden; }
	.container, .privacy-wrapper, .card, .intro-card { max-width:100%; box-sizing:border-box; }
	.privacy-wrapper { word-wrap:break-word; overflow-wrap: anywhere; }
	.privacy-wrapper { padding: 1.5rem 1rem calc(15vh + 2rem); max-width: 100%; }
	.privacy-wrapper h1 { font-size: 1.85rem; margin-bottom: 0.6rem; line-height: 1.15; }
	.privacy-wrapper h2 { font-size: 1.25rem; margin-top: 1.4rem; line-height: 1.2; }
	.muted { font-size: 0.85rem; margin-bottom: 1rem; }
	.small { font-size: 0.8rem; }
	.card { padding: 1rem 1.1rem 1.1rem; margin-top: 0.85rem; border-radius: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(6px); }
	/* Simplified: just constrain text block width for readability */
	.card, .intro-card { max-width: 60ch; width: 100%; margin-left: auto; margin-right: auto; }
	.card p { margin: 0.45rem 0 0.6rem; line-height: 1.5; }
	.card ul { margin: 0.4rem 0 0 1rem; }
	.card li { margin: 0.25rem 0; line-height: 1.4; font-size: 0.95rem; }
	.privacy-wrapper a { color: #66b8ff; }
	.privacy-wrapper a:hover { color: #9fd3ff; }
	/* Match index mobile footer behavior */
	.site-footer {
		display: flex !important;
		position: fixed !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		height: 15vh !important;
		width: 100% !important;
		z-index: 10001 !important;
		background: var(--background-overlay) !important;
		border-top: 2px solid var(--background-overlay-strong) !important;
		backdrop-filter: blur(0.75rem) !important;
		-webkit-backdrop-filter: blur(0.75rem) !important;
		margin: 0 !important;
		box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4) !important;
		padding: 1.25rem 1rem 1.75rem !important;
	}
	.site-footer .footer-inner {
		position: static !important;
		transform: none !important;
		text-align: center !important;
		width: 100% !important;
		padding: 1rem !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 0.4rem !important;
	}
	.site-footer .footer-inner p,
	.site-footer .footer-inner span { margin: 0.25rem 0 !important; font-size: 0.85rem !important; }
}

/* Ultra small phones */
@media (max-width: 420px) {
	.privacy-wrapper h1 { font-size: 1.65rem; }
	.privacy-wrapper h2 { font-size: 1.15rem; }
	.card { padding: 0.9rem 0.9rem 1rem; }
	.card li { font-size: 0.9rem; }
}

/* Landscape cramped height */
@media (max-height: 480px) and (orientation: landscape) {
	.privacy-wrapper { padding: 1rem 0.75rem 1.5rem; }
	.card { margin-top: 0.6rem; }
	.site-footer { padding: 0.9rem 0.75rem 1.1rem; }
}

/* Optional subtle readability overlay on very small widths */
@media (max-width: 520px) {
	body:before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 25% 30%, rgba(0,0,0,0.45), rgba(0,0,0,0.75)); pointer-events: none; z-index: 0; }
	.privacy-wrapper, .site-footer { position: relative; z-index: 1; }
}
