/* Szablon „dokument prawny" wg projektu „Regulamin.dc.html". Jeden CSS dla
   regulaminu, gwarancji i polityk; treść (ol/li z paragrafów) stylowana
   licznikami CSS, żeby HTML stron został nietknięty. */

.legal-landing .ws-page__head { display: none; }

.wl-single { max-width: 760px; }

/* ---------- Hero ---------- */
.wl-hero {
	background: #fff;
	border: 1px solid #efeae3;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
	padding: 26px 32px 32px;
}
.wl-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(180deg, transparent 0 15px, rgba(216, 65, 15, 0.035) 15px 16px);
	pointer-events: none;
}
.wl-hero > * { position: relative; }
.wl-crumbs {
	font-family: var(--font-mono, monospace);
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #b9afa4;
	display: flex;
	gap: 8px;
	align-items: center;
}
.wl-crumbs a { color: #b9afa4; text-decoration: none; }
.wl-crumbs a:hover { color: #d8410f; text-decoration: none; }
.wl-crumbs__here { color: #6b625a; }
.wl-hero__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	margin-top: 16px;
}
.wl-hero__main { max-width: 640px; }
.wl-eyebrow {
	font-family: var(--font-mono, monospace);
	font-size: 11.5px;
	letter-spacing: 0.14em;
	color: #f2541b;
}
.wl-h1 {
	font-family: var(--font-display, sans-serif);
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #1a1614;
	margin: 12px 0 0;
}
.wl-lead { font-size: 17.5px; line-height: 1.6; color: #6b625a; margin: 14px 0 0; text-wrap: pretty; }
.wl-hero__side { display: flex; flex-direction: column; gap: 10px; min-width: 250px; }
.wl-meta {
	background: #fbfaf7;
	border: 1px solid #efeae3;
	border-radius: 14px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.wl-meta__row { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.wl-meta__row span { color: #978d83; }
.wl-meta__row b { font-family: var(--font-mono, monospace); color: #1a1614; font-weight: 600; }
.wl-hero__btns { display: flex; gap: 8px; }
.wl-btn {
	flex: 1;
	text-align: center;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e6dfd6;
	border-radius: 10px;
	padding: 10px 12px;
	font-family: var(--font-sans, sans-serif);
	font-size: 14px;
	font-weight: 600;
	color: #3d362f;
	cursor: pointer;
}
.wl-btn:hover { background: #f7f4ef; color: #d8410f; text-decoration: none; }
.wl-btn--dark { background: #1a1614; border-color: #1a1614; color: #fff; }
.wl-btn--dark:hover { background: #3d362f; color: #fff; }
.wl-btn--dark:active { transform: translateY(1px); }

/* ---------- Skrót ---------- */
.wl-skrot { margin-top: 26px; }
.wl-skrot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wl-skrot__card {
	background: #fff;
	border: 1px solid #efeae3;
	border-radius: 14px;
	padding: 18px 20px;
	box-shadow: 0 1px 2px rgba(26, 22, 20, 0.04);
}
.wl-skrot__big {
	font-family: var(--font-mono, monospace);
	font-size: 26px;
	font-weight: 600;
	color: #f2541b;
	letter-spacing: -0.02em;
}
.wl-skrot__title { font-weight: 600; font-size: 15px; color: #1a1614; margin-top: 8px; }
.wl-skrot__note { font-size: 13.5px; line-height: 1.5; color: #6b625a; margin-top: 4px; }
.wl-skrot__note a { text-decoration: none; color: #d8410f; }
.wl-skrot__disclaimer { font-family: var(--font-mono, monospace); font-size: 12px; color: #b9afa4; margin: 12px 0 0; }

/* ---------- Układ dokumentu ---------- */
.wl-grid {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
	margin-top: 34px;
}
.wl-toc { position: sticky; top: 96px; }
.wl-toc__label {
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	letter-spacing: 0.14em;
	color: #b0340c;
	margin-bottom: 14px;
}
.wl-toc__nav { display: flex; flex-direction: column; gap: 1px; border-left: 2px solid #efeae3; }
.wl-toc__nav a {
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	padding: 8px 0 8px 15px;
	margin-left: -2px;
	border-left: 2px solid transparent;
	display: flex;
	gap: 9px;
	color: #6b625a;
}
.wl-toc__nav a:hover { color: #d8410f; text-decoration: none; }
.wl-toc__nav a.is-active { color: #d8410f; border-left-color: #f2541b; font-weight: 600; }
.wl-toc__num { font-family: var(--font-mono, monospace); font-size: 12.5px; color: #b9afa4; flex: none; width: 26px; }
.wl-toc__ask { margin-top: 22px; background: #1a1614; border-radius: 14px; padding: 16px 18px; }
.wl-toc__ask-label {
	font-family: var(--font-mono, monospace);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	color: #978d83;
}
.wl-toc__ask-text { font-size: 14px; line-height: 1.5; color: #d9d1c7; margin-top: 7px; }
.wl-toc__ask a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	color: #ff9f70;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}
.wl-toc__ask a:hover { color: #fff; text-decoration: none; }

/* ---------- Sekcje ---------- */
.wl-article { max-width: 720px; font-size: 16.5px; line-height: 1.7; color: #3d362f; }
.wl-sec { scroll-margin-top: 96px; padding: 34px 0; border-bottom: 1px solid #efeae3; }
.wl-sec:first-child { padding-top: 0; }
.wl-sec:last-of-type { border-bottom: none; }
.wl-sec__head { display: flex; align-items: baseline; gap: 12px; }
.wl-sec__num { font-family: var(--font-mono, monospace); font-size: 14px; color: #f2541b; font-weight: 600; }
.wl-sec__title {
	font-family: var(--font-display, sans-serif);
	font-size: 25px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #1a1614;
	margin: 0;
}
.wl-sec > p { margin: 16px 0 0; }
.wl-sec a { color: #d8410f; text-decoration: none; }
.wl-sec a:hover { color: #b0340c; text-decoration: none; }

/* Listy paragrafów: numery w mono z lewej (licznik CSS, HTML bez zmian). */
.wl-sec > ol { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: wl-item; }
.wl-sec > ol > li {
	position: relative;
	padding-left: 40px;
	counter-increment: wl-item;
	margin-top: 14px;
}
.wl-sec > ol > li::before {
	content: counter(wl-item) '.';
	position: absolute;
	left: 0;
	top: 3px;
	font-family: var(--font-mono, monospace);
	font-size: 14px;
	color: #b9afa4;
}
.wl-sec ol ol {
	list-style: none;
	margin: 12px 0 0;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #efeae3;
	border-radius: 12px;
	counter-reset: wl-sub;
}
.wl-sec ol ol > li {
	position: relative;
	padding-left: 32px;
	counter-increment: wl-sub;
	font-size: 15.5px;
	line-height: 1.6;
}
.wl-sec ol ol > li + li { margin-top: 10px; }
.wl-sec ol ol > li::before {
	content: counter(wl-sub, lower-alpha) ')';
	position: absolute;
	left: 0;
	top: 2px;
	font-family: var(--font-mono, monospace);
	font-size: 13px;
	color: #b9afa4;
}
.wl-sec ul { margin: 14px 0 0; padding-left: 22px; }
.wl-sec table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.wl-sec th,
.wl-sec td { border: 1px solid #efeae3; padding: 10px 12px; text-align: left; vertical-align: top; }
.wl-sec th { background: #fff; font-weight: 600; }

/* ---------- Historia zmian ---------- */
.wl-historia {
	scroll-margin-top: 96px;
	margin-top: 40px;
	background: #fff;
	border: 1px solid #efeae3;
	border-radius: 16px;
	padding: 22px 24px;
}
.wl-historia__label {
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	letter-spacing: 0.14em;
	color: #b0340c;
}
.wl-historia__grid { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; margin-top: 16px; }
.wl-historia__date { font-family: var(--font-mono, monospace); font-size: 13.5px; color: #1a1614; font-weight: 600; }
.wl-historia__desc { font-size: 15px; line-height: 1.55; color: #3d362f; }
.wl-historia__note { font-family: var(--font-mono, monospace); font-size: 12px; color: #b9afa4; margin: 16px 0 0; line-height: 1.6; }

/* ---------- CTA ---------- */
.wl-cta { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wl-cta__card {
	text-decoration: none;
	background: #fff;
	border: 1px solid #efeae3;
	border-radius: 14px;
	padding: 18px 20px;
	display: block;
}
.wl-cta__card:hover { border-color: #ffd9be; background: #fff9f5; text-decoration: none; }
.wl-cta__title { font-weight: 600; font-size: 15.5px; color: #1a1614; }
.wl-cta__note { font-size: 14px; color: #6b625a; margin-top: 4px; }

/* ---------- Druk ---------- */
@media print {
	.no-print,
	.ws-head,
	.ws-bar,
	.ws-foot,
	.wl-toc { display: none !important; }
	body { background: #fff; }
	.wl-hero { border: none; padding: 0; }
	.wl-grid { display: block; margin-top: 20px; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
	.wl-grid { grid-template-columns: 1fr; gap: 24px; }
	.wl-toc { position: static; }
	.wl-toc__nav { display: none; }
	.wl-skrot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.wl-hero { padding: 20px 18px 26px; }
	.wl-skrot__grid { grid-template-columns: 1fr; }
	.wl-cta { grid-template-columns: 1fr; }
	.wl-hero__side { min-width: 0; width: 100%; }
}
