/* ============================================================
   AutoZeszyt — dokumenty prawne (regulamin, polityka, DPA)
   Minimalistyczny, czytelny layout.
   ============================================================ */

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

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: #1f2937;
	background: #f6f8fc;
}

.legal-wrap {
	max-width: 880px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- HEADER ---------- */
.legal-header {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	padding: 16px 0;
}
.legal-header .legal-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.legal-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #101a2d;
	font-weight: 700;
}
.legal-brand { flex-direction: column; align-items: flex-start; gap: 1px; }
.legal-brand-logo {
	display: block;
	width: 88px;
	height: auto;
	margin: 0;
}
.legal-brand-name {
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
}
.legal-nav {
	display: inline-flex;
	gap: 18px;
	flex-wrap: wrap;
}
.legal-nav a {
	color: #4b5563;
	text-decoration: none;
	font-size: 14px;
}
.legal-nav a:hover {
	color: #314461;
	text-decoration: underline;
}

/* ---------- DOC META ---------- */
.legal-doc {
	padding: 40px 24px 60px;
}
.legal-meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.legal-label {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 6px;
}
.legal-title {
	margin: 0;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
	color: #101a2d;
	letter-spacing: -0.4px;
}
.legal-version {
	font-size: 13px;
	color: #6b7280;
	text-align: right;
}

/* ---------- OPERATOR BOX ---------- */
.legal-operator {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 32px;
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
}
.legal-operator strong {
	color: #101a2d;
	display: block;
	margin-bottom: 4px;
}
.legal-operator a {
	color: #314461;
}

/* ---------- TREŚĆ DOKUMENTU ---------- */
.legal-content {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 32px 36px;
}
.legal-content h2 {
	font-size: 20px;
	line-height: 1.3;
	color: #101a2d;
	margin: 32px 0 12px;
	font-weight: 700;
	letter-spacing: -0.2px;
}
.legal-content h2:first-child {
	margin-top: 0;
}
.legal-content h3 {
	font-size: 16px;
	line-height: 1.4;
	color: #101a2d;
	margin: 22px 0 8px;
	font-weight: 600;
}
.legal-content p {
	margin: 0 0 14px;
}
.legal-content ol,
.legal-content ul {
	margin: 0 0 14px;
	padding-left: 24px;
}
.legal-content li {
	margin: 6px 0;
}
.legal-content strong {
	color: #101a2d;
	font-weight: 600;
}
.legal-content a {
	color: #314461;
}
.legal-content .note {
	background: #fef9c3;
	border-left: 3px solid #ca8a04;
	padding: 10px 14px;
	border-radius: 0 8px 8px 0;
	margin: 14px 0;
	font-size: 14px;
}
.legal-content .disclaimer {
	margin-top: 32px;
	padding-top: 18px;
	border-top: 1px solid #e5e7eb;
	font-size: 13px;
	color: #6b7280;
	font-style: italic;
}

/* ---------- FOOTER ---------- */
.legal-footer {
	background: #fff;
	border-top: 1px solid #e5e7eb;
	padding: 20px 0;
	font-size: 13px;
	color: #6b7280;
}
.legal-footer .legal-wrap {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.legal-footer-links {
	display: inline-flex;
	gap: 14px;
	flex-wrap: wrap;
}
.legal-footer a {
	color: #6b7280;
	text-decoration: none;
}
.legal-footer a:hover {
	color: #314461;
	text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
	.legal-title { font-size: 24px; }
	.legal-version { text-align: left; }
	.legal-content { padding: 24px 22px; }
	.legal-content h2 { font-size: 18px; }
}

/* ============================================================
   Archiwum dokumentów prawnych + baner wersji archiwalnej
   ============================================================ */

/* baner na snapshotach wersji historycznych (views/legal/archive/) */
.legal-archive-banner {
	background: #fff7e6;
	border-bottom: 1px solid #f0dcb0;
	color: #7a5b14;
	padding: 12px 20px;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
}
.legal-archive-banner a {
	color: #0f4c75;
	font-weight: 600;
	margin-left: 6px;
}


/* ============================================================
   Strona archiwum dokumentów (/[slug]/archiwum)
   Wygląd zunifikowany z aktualnymi dokumentami prawnymi
   (terms/privacy/dpa): paleta --ink/--accent, Lora + Source Sans 3.
   ============================================================ */

.arch-body {
	--ink:          #1a1a2e;
	--ink-mid:      #3a3a5c;
	--ink-light:    #6b6b8a;
	--arch-border:  #d8d8e8;
	--arch-bg:      #f9f9fc;
	--accent:       #0f4c75;
	--accent-light: #e8f0f7;

	margin: 0;
	padding: 0;
	background: var(--arch-bg);
	color: var(--ink);
	font-family: 'Source Sans 3', sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
.arch-body *, .arch-body *::before, .arch-body *::after { box-sizing: border-box; }

/* pasek górny — jak .topbar w dokumentach */
.arch-topbar {
	background: var(--accent);
	padding: 14px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	position: sticky;
	top: 0;
	z-index: 10;
}
.arch-topbar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}
/* znak marki 1:1 z landingiem: sylwetka 88px nad nazwą 16px/600 Manrope */
.arch-topbar-brand img { display: block; width: 88px; height: auto; margin: 0; }
.arch-topbar-brand {
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.arch-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 60px 40px 100px;
}

/* nagłówek — jak .doc-header */
.arch-doc-header {
	border-bottom: 2px solid var(--accent);
	padding-bottom: 32px;
	margin-bottom: 40px;
}
.arch-doc-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 12px;
}
.arch-doc-title {
	font-family: 'Lora', serif;
	font-size: 34px;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.2;
	margin: 0 0 20px;
}
.arch-doc-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--ink-light); }
.arch-doc-meta-item { display: flex; align-items: center; gap: 6px; }
.arch-doc-meta-item svg { width: 14px; height: 14px; opacity: .6; }

.arch-lead { font-size: 15px; color: var(--ink-mid); margin: 0 0 24px; }

/* tabela wersji — jak .pp-table */
.arch-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin: 14px 0;
}
.arch-table th {
	background: var(--accent);
	color: #fff;
	padding: 10px 14px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
}
.arch-table th:first-child { border-radius: 8px 0 0 0; }
.arch-table th:last-child  { border-radius: 0 8px 0 0; }
.arch-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--arch-border);
	color: var(--ink-mid);
	vertical-align: top;
	font-size: 14px;
}
.arch-table tr:last-child td { border-bottom: none; }
.arch-table tr:nth-child(even) td { background: rgba(15,76,117,.03); }
.arch-table td strong { color: var(--ink); }

.arch-link { color: var(--accent); text-decoration: none; }
.arch-link:hover { text-decoration: underline; }

/* znacznik wersji aktualnej — jak .plan-badge */
.arch-badge-current {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .8px;
	background: var(--accent);
	color: #fff;
	padding: 2px 8px;
	border-radius: 20px;
	margin-left: 8px;
	vertical-align: middle;
}

/* notka — jak .highlight-box */
.arch-note {
	background: #fff;
	border: 1px solid var(--arch-border);
	border-left: 3px solid var(--accent);
	border-radius: 0 8px 8px 0;
	padding: 14px 18px;
	margin: 24px 0 0;
	font-size: 15px;
	color: var(--ink-mid);
}

/* stopka — jak .doc-footer */
.arch-doc-footer {
	margin-top: 60px;
	padding-top: 24px;
	border-top: 1px solid var(--arch-border);
	font-size: 13px;
	color: var(--ink-light);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.arch-doc-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.arch-doc-footer-links a { color: var(--accent); text-decoration: none; }
.arch-doc-footer-links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
	.arch-wrapper { padding: 32px 20px 60px; }
	.arch-doc-title { font-size: 26px; }
	.arch-topbar { padding: 12px 20px; }
	.arch-table th, .arch-table td { padding: 8px 10px; }
}
