/* ============================================================
   polityka.css – KarolinaFit
   Styl dla podstrony Polityki Prywatności
   Spójny z index.html (te same zmienne CSS, czcionki, kolory)
   ============================================================ */

/* ── Zmienne ──────────────────────────────────────────────── */
:root {
	--bg: #0a0a0a;
	--surface: #111111;
	--card: #161616;
	--dark: #000000;
	--white: #ffffff;
	--offwhite: #f0f0f0;
	--grey: #888888;
	--grey2: #333333;
	--grey3: #222222;
	--red: #cc0000;
	--red-dim: #990000;
	--red-glow: rgba(204, 0, 0, 0.15);
	--border: rgba(255, 255, 255, 0.07);
	--border-r: rgba(204, 0, 0, 0.25);
	--radius: 2px;
	--ff-head: 'Bebas Neue', Impact, sans-serif;
	--ff-body: 'Inter', system-ui, sans-serif;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--toc-width: 260px;
	--content-max: 780px;
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
	background: var(--bg);
	color: var(--white);
	font-family: var(--ff-body);
	font-weight: 400;
	line-height: 1.7;
	overflow-x: hidden;
}

::-webkit-scrollbar {
	width: 4px;
}
::-webkit-scrollbar-track {
	background: var(--dark);
}
::-webkit-scrollbar-thumb {
	background: var(--red);
}

a {
	color: var(--red);
	text-decoration: none;
	transition: color var(--transition);
}
a:hover {
	color: #ff3333;
	text-decoration: underline;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2.5rem;
	background: rgba(10, 10, 10, 0.95);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
	transition: var(--transition);
}
nav.scrolled {
	padding: 0.6rem 2.5rem;
	border-bottom-color: var(--border-r);
	box-shadow: 0 0 30px rgba(204, 0, 0, 0.1);
}

.nav-logo {
	font-family: var(--ff-head);
	font-size: 1.4rem;
	letter-spacing: 0.05em;
	color: var(--white);
	text-decoration: none;
	transition: color var(--transition);
}
.nav-logo:hover {
	color: var(--white);
	text-decoration: none;
}
.nav-logo span {
	color: var(--red);
}

.nav-back {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--grey);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color var(--transition);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.nav-back:hover {
	color: var(--red);
	text-decoration: none;
}

/* ── HERO ─────────────────────────────────────────────────── */
.pp-hero {
	background: var(--dark);
	border-bottom: 1px solid var(--grey2);
	padding: 8rem 2.5rem 4rem;
	position: relative;
	overflow: hidden;
}

.pp-hero::before {
	content: 'RODO';
	position: absolute;
	right: -2rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--ff-head);
	font-size: clamp(6rem, 14vw, 14rem);
	color: rgba(204, 0, 0, 0.06);
	pointer-events: none;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.pp-hero-inner {
	max-width: calc(var(--toc-width) + var(--content-max) + 5rem);
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.pp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 1rem;
}
.pp-eyebrow::before {
	content: '';
	display: block;
	width: 24px;
	height: 2px;
	background: var(--red);
}

.pp-title {
	font-family: var(--ff-head);
	font-size: clamp(3rem, 7vw, 6rem);
	line-height: 0.93;
	letter-spacing: 0.02em;
	color: var(--white);
	margin-bottom: 2rem;
}
.pp-title em {
	font-style: normal;
	color: var(--red);
}

.pp-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
}
.pp-meta-item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.pp-meta-label {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--red);
}
.pp-meta-val {
	font-size: 0.85rem;
	color: var(--grey);
	font-weight: 300;
}
.pp-meta-sep {
	color: var(--grey2);
	align-self: center;
	margin-top: 0.5rem;
}

/* ── LAYOUT (sidebar + content) ───────────────────────────── */
.pp-wrap {
	padding-top: 0;
}

.pp-layout {
	display: flex;
	gap: 0;
	max-width: calc(var(--toc-width) + var(--content-max) + 5rem);
	margin: 0 auto;
	align-items: flex-start;
	padding: 0 2.5rem 6rem;
}

/* ── TOC Sidebar ──────────────────────────────────────────── */
.pp-toc {
	width: var(--toc-width);
	flex-shrink: 0;
	position: sticky;
	top: 80px;
	padding: 2.5rem 2rem 2.5rem 0;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--grey2) transparent;
}
.pp-toc::-webkit-scrollbar {
	width: 3px;
}
.pp-toc::-webkit-scrollbar-thumb {
	background: var(--grey2);
}

.pp-toc-inner {
	border-left: 2px solid var(--grey2);
	padding-left: 1.25rem;
}

.pp-toc-title {
	font-family: var(--ff-head);
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	color: var(--grey);
	margin-bottom: 1rem;
}

.pp-toc-list {
	list-style: none;
	counter-reset: none;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}
.pp-toc-list li {
	list-style: none;
}

.pp-toc-list a {
	display: block;
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--grey);
	text-decoration: none;
	padding: 0.35rem 0;
	border-left: 2px solid transparent;
	margin-left: -1.25rem;
	padding-left: 1.1rem;
	transition:
		color var(--transition),
		border-color var(--transition);
	line-height: 1.4;
}
.pp-toc-list a:hover {
	color: var(--white);
	text-decoration: none;
}
.pp-toc-list a.active {
	color: var(--red);
	border-left-color: var(--red);
	font-weight: 500;
}

/* ── CONTENT ──────────────────────────────────────────────── */
.pp-content {
	flex: 1;
	min-width: 0;
	max-width: var(--content-max);
	padding: 3rem 0 3rem 3rem;
	border-left: 1px solid var(--grey2);
}

/* ── SECTION ──────────────────────────────────────────────── */
.pp-section {
	padding: 3rem 0;
	border-bottom: 1px solid var(--grey2);
	scroll-margin-top: 90px;
	position: relative;
}
.pp-section:last-child {
	border-bottom: none;
}

.pp-section-num {
	font-family: var(--ff-head);
	font-size: 4.5rem;
	line-height: 1;
	color: rgba(204, 0, 0, 0.12);
	position: absolute;
	top: 2.5rem;
	right: 0;
	pointer-events: none;
	letter-spacing: 0.02em;
}

.pp-section-title {
	font-family: var(--ff-head);
	font-size: clamp(1.4rem, 3vw, 2rem);
	letter-spacing: 0.03em;
	color: var(--white);
	margin-bottom: 1.25rem;
	line-height: 1.1;
	position: relative;
}
.pp-section-title::after {
	content: '';
	display: block;
	width: 40px;
	height: 2px;
	background: var(--red);
	margin-top: 0.6rem;
}

.pp-section h3 {
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--red);
	margin: 1.75rem 0 0.6rem;
}

.pp-section p {
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 300;
	margin-bottom: 1rem;
	line-height: 1.75;
}
.pp-section p:last-child {
	margin-bottom: 0;
}

/* ── LISTS ────────────────────────────────────────────────── */
.pp-list {
	list-style: none;
	margin: 0.75rem 0 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.pp-list li {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
	font-weight: 300;
	padding-left: 1.25rem;
	position: relative;
	line-height: 1.65;
}
.pp-list li::before {
	content: '—';
	position: absolute;
	left: 0;
	color: var(--red);
	font-weight: 700;
	font-size: 0.75rem;
	top: 0.1em;
}
.pp-list li strong {
	color: var(--white);
	font-weight: 500;
}

.pp-list--links li::before {
	content: '↗';
}
.pp-list--links a {
	color: var(--grey);
	font-size: 0.88rem;
}
.pp-list--links a:hover {
	color: var(--red);
}

code {
	background: var(--grey3);
	color: #ff8888;
	padding: 0.15rem 0.45rem;
	border-radius: var(--radius);
	font-size: 0.82rem;
	font-family: 'Courier New', monospace;
	border: 1px solid var(--grey2);
}

/* ── CARDS ────────────────────────────────────────────────── */
.pp-card {
	background: var(--card);
	border: 1px solid var(--grey2);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 1rem 0;
}
.pp-card--highlight {
	border-top: 3px solid var(--red);
}
.pp-card--contact {
	border-left: 3px solid var(--red);
}

.pp-card-row {
	display: flex;
	gap: 1rem;
	padding: 0.85rem 1.25rem;
	border-bottom: 1px solid var(--grey2);
	align-items: baseline;
}
.pp-card-row:last-child {
	border-bottom: none;
}

.pp-card-label {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--red);
	min-width: 110px;
	flex-shrink: 0;
}
.pp-card-row span:last-child {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 300;
}

/* ── SERVICE HEADER ───────────────────────────────────────── */
.pp-service-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: var(--card);
	border: 1px solid var(--grey2);
	border-left: 3px solid var(--red);
	padding: 1rem 1.25rem;
	margin: 1rem 0 1.5rem;
	border-radius: var(--radius);
}
.pp-service-header strong {
	display: block;
	font-size: 0.95rem;
	color: var(--white);
	margin-bottom: 0.15rem;
}
.pp-service-provider {
	font-size: 0.75rem;
	color: var(--grey);
	font-weight: 300;
}

.pp-service-logo {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
	letter-spacing: 0;
}
.pp-service-logo--google {
	background: #4285f4;
	color: #fff;
	font-family: Arial, sans-serif;
}
.pp-service-logo--meta {
	background: #1877f2;
	color: #fff;
	font-family: Arial, sans-serif;
}
.pp-service-logo--cloudflare {
	background: #f6821f;
	color: #fff;
	font-size: 0.6rem;
	font-family: var(--ff-body);
	font-weight: 800;
	letter-spacing: -0.03em;
}

/* ── INFO BOXES ───────────────────────────────────────────── */
.pp-info-box {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--grey2);
	border-left: 3px solid var(--grey);
	padding: 1rem 1.25rem;
	border-radius: var(--radius);
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 300;
	line-height: 1.7;
	margin: 1.25rem 0;
}
.pp-info-box--warning {
	border-left-color: var(--red);
	background: rgba(204, 0, 0, 0.06);
}
.pp-info-box strong {
	color: var(--white);
	font-weight: 500;
}
.pp-info-box a {
	color: var(--grey);
}
.pp-info-box a:hover {
	color: var(--red);
}

/* ── PURPOSE GRID ─────────────────────────────────────────── */
.pp-purpose-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--grey2);
	border: 1px solid var(--grey2);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 1rem 0;
}
.pp-purpose-card {
	background: var(--card);
	padding: 1.5rem;
	transition: background var(--transition);
}
.pp-purpose-card:hover {
	background: #1c1c1c;
}
.pp-purpose-icon {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
	display: block;
}
.pp-purpose-card h3 {
	font-family: var(--ff-head);
	font-size: 1rem;
	letter-spacing: 0.04em;
	color: var(--white);
	text-transform: none;
	margin: 0 0 0.75rem;
}
.pp-purpose-card p {
	font-size: 0.82rem;
	color: var(--grey);
	margin-bottom: 0.5rem;
	line-height: 1.6;
}
.pp-purpose-card p strong {
	color: rgba(255, 255, 255, 0.85);
}

/* ── TABLE ────────────────────────────────────────────────── */
.pp-table-wrap {
	overflow-x: auto;
	margin: 1rem 0;
	border-radius: var(--radius);
	border: 1px solid var(--grey2);
}
.pp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.83rem;
}
.pp-table thead tr {
	background: var(--grey3);
}
.pp-table th {
	padding: 0.75rem 1rem;
	text-align: left;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--red);
	border-bottom: 1px solid var(--grey2);
	white-space: nowrap;
}
.pp-table td {
	padding: 0.75rem 1rem;
	color: rgba(255, 255, 255, 0.65);
	border-bottom: 1px solid var(--grey2);
	vertical-align: top;
	font-weight: 300;
	line-height: 1.55;
}
.pp-table tbody tr:last-child td {
	border-bottom: none;
}
.pp-table tbody tr:hover td {
	background: rgba(255, 255, 255, 0.02);
}
.pp-table td code {
	font-size: 0.78rem;
}

/* ── RIGHTS GRID ──────────────────────────────────────────── */
.pp-rights-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--grey2);
	border: 1px solid var(--grey2);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 1rem 0 1.5rem;
}
.pp-right-card {
	background: var(--card);
	padding: 1.25rem 1.5rem;
	transition: background var(--transition);
}
.pp-right-card:hover {
	background: #1c1c1c;
}
.pp-right-icon {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	display: block;
}
.pp-right-card h3 {
	font-family: var(--ff-head);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: var(--white);
	text-transform: none;
	margin: 0 0 0.5rem;
}
.pp-right-card p {
	font-size: 0.8rem;
	color: var(--grey);
	line-height: 1.6;
	margin-bottom: 0;
}
.pp-right-card a {
	font-size: 0.8rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.pp-footer {
	background: var(--dark);
	border-top: 1px solid var(--grey2);
	padding: 1.5rem 2.5rem;
}
.pp-footer-inner {
	max-width: calc(var(--toc-width) + var(--content-max) + 5rem);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	font-size: 0.78rem;
	color: var(--grey);
}
.pp-footer-logo {
	font-family: var(--ff-head);
	font-size: 1.1rem;
	letter-spacing: 0.05em;
	color: var(--white);
}
.pp-footer-logo span {
	color: var(--red);
}
.pp-footer-inner a {
	color: var(--grey);
	font-size: 0.78rem;
}
.pp-footer-inner a:hover {
	color: var(--red);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
	.pp-layout {
		flex-direction: column;
		padding: 0 1.5rem 4rem;
	}

	.pp-toc {
		width: 100%;
		position: static;
		max-height: none;
		padding: 1.5rem 0 0;
		border-bottom: 1px solid var(--grey2);
		margin-bottom: 2rem;
	}
	.pp-toc-inner {
		border-left: none;
		padding-left: 0;
	}
	.pp-toc-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.25rem;
	}
	.pp-toc-list a {
		border-left: none;
		border-bottom: 2px solid transparent;
		margin-left: 0;
		padding: 0.3rem 0.6rem;
		font-size: 0.75rem;
		background: var(--card);
	}
	.pp-toc-list a.active {
		border-bottom-color: var(--red);
		border-left: none;
	}

	.pp-content {
		padding: 0;
		border-left: none;
	}

	.pp-purpose-grid,
	.pp-rights-grid {
		grid-template-columns: 1fr;
	}

	.pp-hero {
		padding: 7rem 1.5rem 3rem;
	}
	.pp-section-num {
		font-size: 3rem;
		top: 2rem;
	}

	nav {
		padding: 0.9rem 1.5rem;
	}
	nav.scrolled {
		padding: 0.55rem 1.5rem;
	}

	.pp-meta-sep {
		display: none;
	}
}

@media (max-width: 600px) {
	.pp-table {
		font-size: 0.78rem;
	}
	.pp-table th,
	.pp-table td {
		padding: 0.6rem 0.75rem;
	}

	.pp-card-label {
		min-width: 80px;
	}
	.pp-footer-inner {
		gap: 0.75rem;
	}
}
