/*
 * Le Tabelline - Times Tables learning game for children
 * Copyright (C) 2025  Maurizio Meluzzi
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
 */

/* ============================================================
   BASE  (shared with landing.css palette)
   ============================================================ */

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background-color: #F4C2DF;
	font-family: Arial, Helvetica, sans-serif;
	color: #821f9d;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(24px, 5vw, 60px) clamp(16px, 6vw, 80px);
	gap: clamp(12px, 3vw, 28px);
}

/* ============================================================
   CONTENT CONTAINER
   ============================================================ */

.privacy-container {
	width: 100%;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: clamp(18px, 4vw, 36px);
}

/* ============================================================
   BACK LINK
   ============================================================ */

.privacy-back-link {
	color: #821f9d;
	font-size: clamp(0.9rem, 2.5vw, 1.1rem);
	text-decoration: underline;
	align-self: flex-start;
}

/* ============================================================
   TITLE
   ============================================================ */

.privacy-title {
	font-size: clamp(2rem, 8vw, 3.5rem);
	font-weight: bold;
	color: #821f9d;
	line-height: 1.1;
	margin: 0;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.privacy-section {
	display: flex;
	flex-direction: column;
	gap: clamp(6px, 1.5vw, 12px);
}

.privacy-section h2 {
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	font-weight: bold;
	color: #821f9d;
	margin: 0;
}

.privacy-section p {
	font-size: clamp(0.9rem, 2.5vw, 1.1rem);
	color: #444;
	line-height: 1.6;
	margin: 0;
	font-weight: normal;
}

.privacy-section a {
	color: #821f9d;
	text-decoration: underline;
}

/* ============================================================
   LANGUAGE SELECTOR  (same as landing)
   ============================================================ */

#lang-selector {
	display: flex;
	gap: clamp(8px, 2vw, 16px);
	justify-content: center;
	position: fixed;
	top: clamp(12px, 3vw, 24px);
	right: clamp(12px, 3vw, 24px);
}

.lang-flag {
	font-size: clamp(1.22rem, 4vw, 2rem);
	cursor: pointer;
	opacity: 0.45;
	transition: opacity 0.15s ease, transform 0.15s ease;
	user-select: none;
}

.lang-flag.active {
	opacity: 1;
	transform: scale(1.2);
}

.lang-flag:hover {
	opacity: 0.85;
}

/* ============================================================
   LANDSCAPE COMPACT ADJUSTMENT
   ============================================================ */

@media (orientation: landscape) and (max-height: 500px) {
	body {
		padding: 12px clamp(16px, 4vw, 40px);
	}

	.privacy-title {
		font-size: clamp(1.4rem, 5vh, 2.5rem);
	}
}
