/* ==========================================================================
   Geo Shop — Legal pages (privacy, terms, warranty)
   Light-shop counterpart of geo-diving-custom/assets/css/legal.css
   ========================================================================== */

.gs-legal-page .main-wrap {
	background: var(--geo-page);
	color: var(--geo-text);
}

.gs-legal {
	position: relative;
	z-index: 1;
}

.gs-legal__body {
	padding: clamp(3rem, 8vw, 5rem) 1.5rem 5rem;
}

.gs-legal__content {
	max-width: 42rem;
	margin: 0 auto;
}

.gs-legal__title {
	margin: 0 0 clamp(2.5rem, 6vw, 3.5rem) !important;
	font-family: var(--geo-font);
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--geo-text);
}

.gs-legal__entry {
	font-family: var(--geo-font);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--geo-text-soft);
}

.gs-legal__entry > *:first-child {
	margin-top: 0;
}

.gs-legal__entry p {
	margin: 0 0 1.25rem !important;
	padding: 0;
}

.gs-legal__entry h2 {
	margin: 2.75rem 0 1rem !important;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--geo-text);
}

.gs-legal__entry h3 {
	margin: 2rem 0 0.75rem !important;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--geo-text);
}

.gs-legal__entry ol.gs-legal__clauses > li > h3 {
	margin-top: 1.25rem !important;
}

.gs-legal__entry ol.gs-legal__clauses > li > .gs-legal__clause-label + h3 {
	margin-top: 0 !important;
}

.gs-legal__entry ul,
.gs-legal__entry ol {
	list-style-type: disc !important;
	margin: 0 0 1.25rem !important;
	padding-left: 1.25rem;
}

.gs-legal__entry ol {
	list-style-type: decimal !important;
}

.gs-legal__entry ol.gs-legal__clauses {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	counter-reset: gs-clause;
}

.gs-legal__entry ol.gs-legal__clauses > li {
	position: relative;
	margin: 0 0 2.75rem;
	padding: 0 0 0 3.25rem;
	counter-increment: gs-clause;
}

.gs-legal__entry ol.gs-legal__clauses > li:last-child {
	margin-bottom: 0;
}

.gs-legal__entry ol.gs-legal__clauses > li::before {
	content: counter(gs-clause) ".";
	position: absolute;
	left: 0;
	top: 0;
	width: 2.75rem;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--geo-text);
}

.gs-legal__entry ol.gs-legal__clauses > li > p {
	margin-bottom: 0.75rem !important;
}

.gs-legal__entry ol.gs-legal__clauses > li > :last-child {
	margin-bottom: 0 !important;
}

.gs-legal__entry ol.gs-legal__subclauses {
	list-style: none !important;
	margin: 0.85rem 0 0 !important;
	padding: 0 !important;
	counter-reset: gs-sub;
}

.gs-legal__entry ol.gs-legal__subclauses > li {
	position: relative;
	margin: 0 0 0.65rem;
	padding: 0 0 0 2.75rem;
	counter-increment: gs-sub;
}

.gs-legal__entry ol.gs-legal__subclauses > li:last-child {
	margin-bottom: 0;
}

.gs-legal__entry ol.gs-legal__subclauses > li::before {
	content: counter(gs-clause) "." counter(gs-sub);
	position: absolute;
	left: 0;
	top: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.75;
	letter-spacing: -0.02em;
	color: var(--geo-text);
}

.gs-legal__entry ol.gs-legal__subclauses.gs-legal__subclauses--dot > li {
	padding-left: 3.75rem;
}

.gs-legal__entry ol.gs-legal__subclauses.gs-legal__subclauses--dot > li::before {
	content: counter(gs-clause) "." counter(gs-sub) ".";
	width: 3.5rem;
}

.gs-legal__clause-label {
	margin-top: 0 !important;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--geo-text);
}

.gs-legal__entry li {
	margin: 0 0 0.5rem;
	padding: 0;
}

.gs-legal__entry li::marker {
	color: var(--geo-cyan-dark);
}

.gs-legal__entry a {
	color: var(--geo-cyan-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	overflow-wrap: anywhere;
}

.gs-legal__entry a:hover {
	color: var(--geo-text);
}

.gs-legal__entry strong {
	color: var(--geo-text);
	font-weight: 600;
}

.gs-legal__entry code {
	font-size: 0.875em;
	padding: 0.1em 0.35em;
	border-radius: 0.25rem;
	background: var(--geo-surface);
	color: var(--geo-text);
}

@media (max-width: 767px) {
	.gs-legal__body {
		padding: 2.5rem 1.25rem 3.5rem;
	}
}
