/* Guitar Bcn — pàgines legals (CPT texto_legal). Plantilla d'Elementor «Text legal» (Theme Builder, single de
   texto_legal): contenidor .gtleg > .gtleg__cap (títol) + .gtleg__cos (índex [guitar_legal_index] + text).
   24-nov-2026. Sòbria i llegible: crema #f2efe9, tot en negre #1c1c1c, columna de lectura de 720 px, títols sense
   color ni majúscules, filet fi entre apartats. Es carrega a wp_head 125 (després de fixos.css). */

body.gt-legal {
	--gtl-n: #1c1c1c;
	--gtl-b: #f2efe9;
	--gtl-filet: rgba(28, 28, 28, .18);
	--gtl-font: var(--gt-font, "Halyard Display", system-ui, sans-serif);
	--gtl-lat: var(--gt-lat, clamp(20px, 6.25vw, 90px));
	--gtl-dalt: calc(var(--gt-cap-h, 96px) + 24px);   /* marge sota la capçalera fixa (índex enganxat, salts a apartats) */
	background: var(--gtl-b);
}
body.gt-legal ::selection { background: var(--gtl-n); color: var(--gtl-b); }

/* ---------- Contenidor ---------- */
body.gt-legal .gtleg.e-con {
	--padding-top: clamp(56px, 7.5vw, 120px);
	--padding-bottom: clamp(80px, 9vw, 140px);
	--padding-left: var(--gtl-lat);
	--padding-right: var(--gtl-lat);
	background: var(--gtl-b); color: var(--gtl-n); font-family: var(--gtl-font);
}
body.gt-legal .gtleg__cap.e-con,
body.gt-legal .gtleg__cos.e-con { width: 100%; max-width: 1260px; margin-left: auto; margin-right: auto; }

/* ---------- Títol ---------- */
body.gt-legal .gtleg__cap.e-con { padding-bottom: clamp(24px, 2.6vw, 36px); margin-bottom: clamp(40px, 5vw, 72px); border-bottom: 1.5px solid var(--gtl-n); }
body.gt-legal .gtleg__cap .elementor-heading-title {
	margin: 0; color: var(--gtl-n); font-family: var(--gtl-font);
	font-size: clamp(40px, 5.4vw, 78px); line-height: 1; font-weight: 500; letter-spacing: -.01em; text-transform: none;
}

/* ---------- Cos: índex a l'esquerra (fix en baixar) i text ---------- */
body.gt-legal .gtleg__cos.e-con { --flex-direction: row; --justify-content: space-between; --align-items: flex-start; --gap: clamp(40px, 6vw, 120px); --row-gap: clamp(40px, 6vw, 120px); --column-gap: clamp(40px, 6vw, 120px); }
/* (pes alt: Elementor posa .elementor.elementor .e-con > .elementor-widget { max-width: 100% }) */
body.gt-legal .gtleg__cos.e-con > .gtleg__idx.elementor-widget { flex: 0 0 clamp(220px, 22vw, 300px); width: auto; max-width: 300px; position: sticky; top: var(--gtl-dalt); align-self: flex-start; }
body.gt-legal .gtleg__cos.e-con > .gtleg__text.elementor-widget { flex: 1 1 0; width: auto; min-width: 0; max-width: 720px; }

/* índex */
.gtleg-idx__d > summary { list-style: none; }
.gtleg-idx__d > summary::-webkit-details-marker { display: none; }
.gtleg-idx__t {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1.5px solid var(--gtl-n);
	font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--gtl-n); cursor: default;
}
.gtleg-idx ol { list-style: none; margin: 0; padding: 0; counter-reset: gtl; }
.gtleg-idx li { margin: 0; padding: 0; }
body.gt-legal .gtleg-idx a {
	display: grid; grid-template-columns: 2.1em 1fr; align-items: baseline;
	padding: 7px 0; font-size: 15px; line-height: 1.35; color: var(--gtl-n); text-decoration: none; opacity: .66;
	transition: opacity .2s ease;
}
body.gt-legal .gtleg-idx a::before { counter-increment: gtl; content: counter(gtl, decimal-leading-zero); font-variant-numeric: tabular-nums; font-size: 13px; opacity: .7; }
body.gt-legal .gtleg-idx a:hover,
body.gt-legal .gtleg-idx a[aria-current="true"] { opacity: 1; }
body.gt-legal .gtleg-idx a[aria-current="true"] span,
body.gt-legal .gtleg-idx a:hover span { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
body.gt-legal .gtleg-idx a:focus-visible { opacity: 1; outline: 2px solid var(--gtl-n); outline-offset: 3px; }

/* ---------- Text ---------- */
body.gt-legal .gtleg__text,
body.gt-legal .gtleg__text .elementor-widget-container { color: var(--gtl-n); font-family: var(--gtl-font); font-size: 18px; line-height: 1.65; font-weight: 400; }
body.gt-legal .gtleg__text :is(p, li, td, th, div, span, strong, b, em, i) { color: inherit; font-family: inherit; }
body.gt-legal .gtleg__text p { margin: 0 0 1em; font-size: inherit; line-height: inherit; }
body.gt-legal .gtleg__text h2 {
	margin: 2.4em 0 .75em; padding-top: 1.1em; border-top: 1px solid var(--gtl-filet);
	color: var(--gtl-n); font-family: var(--gtl-font); font-size: clamp(22px, 1.9vw, 27px); line-height: 1.22; font-weight: 500;
	letter-spacing: 0; text-transform: none; scroll-margin-top: var(--gtl-dalt);
}
body.gt-legal .gtleg__text h2:first-child,
body.gt-legal .gtleg__text > div:first-child > h2:first-child,
body.gt-legal .gtleg__text .elementor-widget-container > h2:first-child,
body.gt-legal .gtleg__text .elementor-widget-container > div:first-child > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body.gt-legal .gtleg__text h3,
body.gt-legal .gtleg__text h4 { margin: 1.8em 0 .6em; color: var(--gtl-n); font-family: var(--gtl-font); font-size: 20px; line-height: 1.3; font-weight: 500; text-transform: none; }
body.gt-legal .gtleg__text strong,
body.gt-legal .gtleg__text b { font-weight: 500; }
body.gt-legal .gtleg__text :is(ul, ol) { margin: 0 0 1.2em; padding-left: 1.3em; }
body.gt-legal .gtleg__text li { margin: 0 0 .5em; padding-left: .2em; }
body.gt-legal .gtleg__text li::marker { color: var(--gtl-n); }
body.gt-legal .gtleg__text a { color: var(--gtl-n); text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
body.gt-legal .gtleg__text a:hover { text-decoration-thickness: 2px; }
body.gt-legal .gtleg__text a:focus-visible { outline: 2px solid var(--gtl-n); outline-offset: 2px; }
/* el text ve de documents amb fons clars en línia: fora */
body.gt-legal .gtleg__text [style*="background"] { background-color: transparent !important; }
/* taula de cookies: es desplaça dins seu si no hi cap */
body.gt-legal .gtleg__text table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; line-height: 1.45; }
body.gt-legal .gtleg__text :is(th, td) { padding: .65em .8em; border: 1px solid var(--gtl-filet); vertical-align: top; text-align: left; min-width: 7.5rem; background: transparent; }
body.gt-legal .gtleg__text th,
body.gt-legal .gtleg__text tr:first-child td { font-weight: 500; background: rgba(28, 28, 28, .05); }
body.gt-legal .gtleg__text td:nth-child(4) { min-width: 15rem; }

/* ---------- Tauleta i mòbil: una columna, índex plegable a dalt ---------- */
@media (max-width: 1024px) {
	body.gt-legal .gtleg__cos.e-con { --flex-direction: column; --align-items: stretch; --gap: 32px; --row-gap: 32px; }
	body.gt-legal .gtleg__cos.e-con > .gtleg__idx.elementor-widget { position: static; flex: none; width: 100%; max-width: none; }
	.gtleg-idx__t { cursor: pointer; min-height: 44px; margin-bottom: 0; padding: 0; border: 1.5px solid var(--gtl-n); padding: 0 16px; }
	.gtleg-idx__t::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
	.gtleg-idx__d[open] > .gtleg-idx__t::after { transform: translateY(2px) rotate(-135deg); }
	.gtleg-idx ol { border: 1.5px solid var(--gtl-n); border-top: 0; padding: 6px 16px 10px; }
	body.gt-legal .gtleg-idx a { padding: 10px 0; min-height: 44px; box-sizing: border-box; }
	body.gt-legal .gtleg__cos.e-con > .gtleg__text.elementor-widget { flex: none; width: 100%; max-width: none; }
}
@media (max-width: 767px) {
	body.gt-legal .gtleg__text,
	body.gt-legal .gtleg__text .elementor-widget-container { font-size: 17px; line-height: 1.6; }
	body.gt-legal .gtleg__text h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
	body.gt-legal .gtleg-idx a, .gtleg-idx__t::after { transition: none; }
}
