/*
 * MMA Regulamin Programu Lojalnościowego
 * Styl stron /regulamin-programu-lojalnosciowego/ oraz /regulamin/ (Regulamin Sklepu)
 * Wersja: 1.0.2
 * Utworzony: 2026-04-21 (Etap 7a programu lojalnościowego)
 */

:root {
	--mma-regulamin-gold: #fec009;
	--mma-regulamin-gold-dark: #e5a309;
	--mma-regulamin-navy: #1a1a2e;
	--mma-regulamin-white: #ffffff;
	--mma-regulamin-border: #e5e5e5;
	--mma-regulamin-text: #1f2937;
	--mma-regulamin-text-muted: #6b7280;
	--mma-regulamin-radius: 14px;
	--mma-regulamin-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
}

/* Scroll padding dla anchor linków (pozostawiamy tylko offset, smooth obsługuje JS) */
html:has(.mma-regulamin-toc) {
	scroll-padding-top: 100px;
}

/* Header: tytuł + metadata + lead */
.mma-regulamin-header {
	text-align: center;
	padding: 32px 0 40px;
	border-bottom: 1px solid var(--mma-regulamin-border);
	margin-bottom: 24px;
}

.mma-regulamin-header h1 {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: clamp(28px, 4.5vw, 42px);
	line-height: 1.15;
	color: var(--mma-regulamin-navy);
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: -0.5px;
}

.mma-regulamin-header h1::after {
	content: '';
	display: block;
	width: 80px;
	height: 4px;
	background: var(--mma-regulamin-gold);
	margin: 20px auto 0;
	border-radius: 2px;
}

.mma-regulamin-meta {
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
	color: var(--mma-regulamin-text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 24px;
}

.mma-regulamin-meta strong {
	color: var(--mma-regulamin-navy);
	font-weight: 600;
}

.mma-regulamin-lead {
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.65;
	color: var(--mma-regulamin-text);
}

.mma-regulamin-lead a {
	color: var(--mma-regulamin-navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--mma-regulamin-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Container — grid TOC | Treść */
.mma-regulamin-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	max-width: 1240px;
	margin: 0 auto;
	padding-top: var(--mma-spacing-xl);
}

@media (min-width: 960px) {
	.mma-regulamin-container {
		grid-template-columns: 280px 1fr;
		gap: 56px;
	}
}

/* TOC (Spis treści) */
.mma-regulamin-toc {
	background: var(--mma-regulamin-white);
	border: 1px solid var(--mma-regulamin-border);
	border-radius: var(--mma-regulamin-radius);
	padding: 0;
	overflow: hidden;
}

@media (min-width: 960px) {
	.mma-regulamin-toc {
		position: sticky;
		top: 24px;
		max-height: calc(100vh - 48px);
		overflow-y: auto;
		padding: 24px 4px 20px 20px;
	}
	.mma-regulamin-toc::-webkit-scrollbar { width: 6px; }
	.mma-regulamin-toc::-webkit-scrollbar-track { background: transparent; }
	.mma-regulamin-toc::-webkit-scrollbar-thumb { background: var(--mma-regulamin-border); border-radius: 3px; }
	.mma-regulamin-toc::-webkit-scrollbar-thumb:hover { background: var(--mma-regulamin-gold); }
}

.mma-regulamin-toc__title {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--mma-regulamin-navy);
	margin: 0;
	padding: 0 0 16px;
}

.mma-regulamin-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 22px 24px;
	background: var(--mma-regulamin-white);
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--mma-regulamin-navy);
}

.mma-regulamin-toc__toggle-icon {
	width: 32px;
	height: 32px;
	background: var(--mma-regulamin-gold);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--mma-regulamin-navy);
	transition: transform 0.3s ease;
	flex-shrink: 0;
	line-height: 1;
}

.mma-regulamin-toc__toggle-icon svg {
	width: 14px;
	height: 14px;
	display: block;
}

.mma-regulamin-toc.is-open .mma-regulamin-toc__toggle-icon {
	transform: rotate(180deg);
}

@media (min-width: 960px) {
	.mma-regulamin-toc__toggle { display: none; }
	.mma-regulamin-toc__title { display: block; }
}

@media (max-width: 959px) {
	.mma-regulamin-toc__title { display: none; }
	.mma-regulamin-toc__list-wrapper {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.4s ease;
	}
	.mma-regulamin-toc.is-open .mma-regulamin-toc__list-wrapper {
		max-height: 1000px;
	}
}

.mma-regulamin-toc__list {
	list-style: none;
	margin: 0;
	padding: 0 24px 20px;
}

@media (min-width: 960px) {
	.mma-regulamin-toc__list { padding: 0; }
}

.mma-regulamin-toc__list li {
	margin: 0;
	padding: 0;
}

.mma-regulamin-toc__list a,
.mma-regulamin-toc__list a:link,
.mma-regulamin-toc__list a:visited,
.mma-regulamin-toc__list a:hover,
.mma-regulamin-toc__list a:focus,
.mma-regulamin-toc__list a:active {
	display: block;
	padding: 9px 12px;
	color: var(--mma-regulamin-text) !important;
	text-decoration: none !important;
	font-size: 13.5px;
	line-height: 1.35;
	border-left: 3px solid transparent;
	border-radius: 0 6px 6px 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mma-regulamin-toc__list a:hover {
	background: rgba(254, 192, 9, 0.08);
	border-left-color: var(--mma-regulamin-gold);
	color: var(--mma-regulamin-navy) !important;
}

.mma-regulamin-toc__list a.is-active,
.mma-regulamin-toc__list a.is-active:link,
.mma-regulamin-toc__list a.is-active:visited {
	background: rgba(254, 192, 9, 0.12);
	border-left-color: var(--mma-regulamin-gold);
	color: var(--mma-regulamin-navy) !important;
	font-weight: 600;
}

/* Article body + sekcje */
.mma-regulamin-body {
	min-width: 0;
}

.mma-regulamin-section {
	background: var(--mma-regulamin-white);
	border: 1px solid var(--mma-regulamin-border);
	border-radius: var(--mma-regulamin-radius);
	padding: 32px 32px 28px;
	margin-bottom: 24px;
	scroll-margin-top: 100px;
	transition: box-shadow 0.3s ease;
}

.mma-regulamin-section:hover {
	box-shadow: var(--mma-regulamin-shadow-sm);
}

@media (max-width: 640px) {
	.mma-regulamin-section { padding: 24px 20px 20px; }
}

.mma-regulamin-section h2 {
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: clamp(22px, 2.8vw, 28px);
	line-height: 1.2;
	color: var(--mma-regulamin-navy);
	text-transform: uppercase;
	letter-spacing: -0.3px;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--mma-regulamin-gold);
}

.mma-regulamin-section h3 {
	font-family: 'Oswald', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.3;
	color: var(--mma-regulamin-navy);
	margin: 28px 0 12px;
	padding-left: 14px;
	border-left: 4px solid var(--mma-regulamin-gold);
}

.mma-regulamin-section p {
	margin: 0 0 14px;
	color: var(--mma-regulamin-text);
	line-height: 1.7;
}

.mma-regulamin-section a {
	color: var(--mma-regulamin-navy);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--mma-regulamin-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.mma-regulamin-section a:hover {
	color: var(--mma-regulamin-gold-dark);
}

.mma-regulamin-section strong {
	color: var(--mma-regulamin-navy);
	font-weight: 600;
}

/* Listy numerowane (1, 2, 3 w paragrafach) */
.mma-regulamin-section > ol {
	margin: 0 0 16px;
	padding-left: 28px;
	counter-reset: list-counter;
	list-style: none;
}

.mma-regulamin-section > ol > li {
	counter-increment: list-counter;
	margin-bottom: 14px;
	padding-left: 10px;
	position: relative;
	line-height: 1.7;
}

.mma-regulamin-section > ol > li::before {
	content: counter(list-counter) ".";
	position: absolute;
	left: -28px;
	top: 0;
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	color: var(--mma-regulamin-gold-dark);
	font-size: 15px;
	min-width: 28px;
}

/* Listy bulletowe */
.mma-regulamin-section ul {
	margin: 10px 0 14px;
	padding-left: 22px;
	list-style: none;
}

.mma-regulamin-section ul li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 8px;
	line-height: 1.6;
}

.mma-regulamin-section ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 11px;
	width: 6px;
	height: 6px;
	background: var(--mma-regulamin-gold);
	border-radius: 50%;
}

.mma-regulamin-section ul ul {
	margin: 8px 0 6px;
}

.mma-regulamin-section ul ul li::before {
	background: transparent;
	border: 2px solid var(--mma-regulamin-gold);
	width: 8px;
	height: 8px;
}

/* Outro (ciepłe zakończenie § 10) */
.mma-regulamin-outro {
	margin-top: 32px;
	padding: 24px 28px;
	background: linear-gradient(135deg, rgba(254, 192, 9, 0.08), rgba(254, 192, 9, 0.02));
	border: 1px solid rgba(254, 192, 9, 0.3);
	border-radius: var(--mma-regulamin-radius);
	text-align: center;
}

.mma-regulamin-outro p {
	margin: 0 0 10px;
	font-size: 16px;
}

.mma-regulamin-outro p:last-child {
	margin-bottom: 0;
	font-family: 'Oswald', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--mma-regulamin-navy);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 16px;
}

.mma-regulamin-outro strong {
	color: var(--mma-regulamin-navy);
}

/* Version footer */
.mma-regulamin-version {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--mma-regulamin-border);
	font-family: 'Oswald', sans-serif;
	font-size: 13px;
	color: var(--mma-regulamin-text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	text-align: center;
}

.mma-regulamin-version strong {
	color: var(--mma-regulamin-navy);
}

/* Fade-in animacja wejścia sekcji */
@keyframes mmaRegulaminFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.mma-regulamin-section {
	animation: mmaRegulaminFadeIn 0.5s ease-out backwards;
}

.mma-regulamin-section:nth-child(1) { animation-delay: 0.05s; }
.mma-regulamin-section:nth-child(2) { animation-delay: 0.1s; }
.mma-regulamin-section:nth-child(3) { animation-delay: 0.15s; }

/* § 11 i § 12 Regulaminu Sklepu — podrozdziały h3 (Legal Docs v1.0) */
.mma-regulamin-section__subheading {
	font-family: 'Oswald', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a2e;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 32px 0 16px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #fec009;
	display: inline-block;
}

.mma-regulamin-section__subheading:first-of-type {
	margin-top: 24px;
}

@media (max-width: 768px) {
	.mma-regulamin-section__subheading {
		font-size: 16px;
		margin: 24px 0 12px 0;
	}
}
