/* =====================================================================
 * Thumbs Up – Legal / Policy Page (template-tu-legal.php), 2026-11-05.
 * Reading column + "On this page" list + help card. Hero styles come
 * from tu-page-hero.css, section wrappers from tu-content.css.
 * Selectors start with .tuc so they win over the generic tu-content.css
 * heading / link rules.
 * 2026-11-11: list + help card share one sticky sidebar (.tulg__side) that
 * fits the screen; a long list scrolls inside its own box, so the help card
 * no longer slides up over it.
 * ===================================================================== */

.tuc .tulg{display:grid;grid-template-columns:minmax(0,290px) minmax(0,1fr);grid-template-areas:"side body";gap:28px clamp(28px,4vw,64px);align-items:start}
.tuc .tulg--solo{grid-template-columns:minmax(0,1fr);grid-template-areas:"body"}
.tuc .tulg__side{grid-area:side;position:sticky;top:130px;display:flex;flex-direction:column;gap:20px;max-height:calc(100vh - 150px);min-width:0}
.admin-bar .tuc .tulg__side{max-height:calc(100vh - 182px)}
.tuc .tulg__toc{flex:0 1 auto;min-height:120px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:18px}
.tuc .tulg__body{grid-area:body;max-width:780px;min-width:0}
.tuc .tulg__help{flex:none}

/* On this page */
.tuc .tulg__toc details{background:var(--tu-ice);border:1px solid var(--tu-ice-200,#dbe9f2);border-radius:18px;padding:6px 6px 10px}
.tuc .tulg__toc summary{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;list-style:none;background:var(--tu-ice);border-radius:14px;font:italic 800 .8rem var(--font-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--tu-navy)}
.tuc .tulg__toc summary::-webkit-details-marker{display:none}
.tuc .tulg__toc summary .icon-list-checks{color:var(--tu-orange);font-size:1rem}
.tuc .tulg__chev{margin-left:auto;transition:transform .2s}
.tuc .tulg__toc details[open] .tulg__chev{transform:rotate(180deg)}
.tuc .tulg__toc ol{list-style:none;counter-reset:tulg;margin:0;padding:0 6px}
.tuc .tulg__toc li{counter-increment:tulg;margin:0}
.tuc .tulg__toc a{display:flex;gap:10px;align-items:baseline;padding:9px 10px;border-radius:10px;color:var(--tu-navy)!important;font-weight:600;font-size:.95rem;line-height:1.35;text-decoration:none!important;transition:background .15s,color .15s}
.tuc .tulg__toc a::before{content:counter(tulg,decimal-leading-zero);font:800 .75rem var(--font-sans);color:var(--tu-orange);min-width:20px}
.tuc .tulg__toc a:hover,.tuc .tulg__toc a:focus-visible,.tuc .tulg__toc a.is-active{background:#fff;color:var(--tu-blue)!important;box-shadow:inset 3px 0 0 var(--tu-orange)}

/* Reading column (editor content, unchanged) */
.tuc .tulg__body>*:first-child{margin-top:0}
.tuc .tulg__body h2{scroll-margin-top:140px;margin:2em 0 .6em;padding-top:1.1em;border-top:2px dashed var(--tu-ice-200,#dbe9f2);font-family:var(--font-display);font-weight:400;font-size:clamp(1.3rem,1.05rem + .8vw,1.7rem);line-height:1.15;letter-spacing:.01em;text-transform:uppercase;color:var(--tu-navy)}
.tuc .tulg__body>h2:first-child{padding-top:0;border-top:0}
.tuc .tulg__body h3{margin:1.6em 0 .5em;font:italic 800 1.15rem/1.3 var(--font-sans);color:var(--tu-navy)}
.tuc .tulg__body p,.tuc .tulg__body li{font-size:1.05rem;line-height:1.75;color:var(--tu-ink,#1e2a3b)}
.tuc .tulg__body p{margin:0 0 1em}
.tuc .tulg__body ul,.tuc .tulg__body ol{margin:0 0 1.1em;padding-left:1.3em}
.tuc .tulg__body li{margin-bottom:.35em}
.tuc .tulg__body li::marker{color:var(--tu-orange)}
.tuc .tulg__body a{color:var(--tu-blue);font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:rgba(20,80,168,.35);transition:text-decoration-color .15s}
.tuc .tulg__body a:hover,.tuc .tulg__body a:focus-visible{text-decoration-color:var(--tu-orange)}
.tuc .tulg__body blockquote{margin:1.4em 0;padding:16px 20px;border-left:4px solid var(--tu-orange);background:var(--tu-ice);border-radius:0 14px 14px 0}
.tuc .tulg__body table{width:100%;border-collapse:collapse;margin:0 0 1.2em;font-size:.98rem}
.tuc .tulg__body th,.tuc .tulg__body td{padding:10px 12px;border:1px solid var(--tu-ice-200,#dbe9f2);text-align:left}
.tuc .tulg__body th{background:var(--tu-ice);color:var(--tu-navy)}

/* Help card */
.tuc .tulg__help{position:relative;overflow:hidden;padding:26px 24px 24px;border-radius:20px;background:var(--tu-navy);color:#fff;box-shadow:0 14px 34px rgba(1,18,54,.18)}
.tuc .tulg__help::after{content:"";position:absolute;right:-60px;top:-60px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(255,105,0,.35),transparent 70%);pointer-events:none}
.tuc .tulg__help-ic{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--tu-orange);color:#fff;font-size:1.3rem;margin-bottom:14px}
.tuc .tulg__help-h{margin:0 0 6px;font-family:var(--font-display);font-size:1.35rem;line-height:1.15;text-transform:uppercase;color:#fff}
.tuc .tulg__help-p{margin:0 0 14px;font-size:.98rem;line-height:1.55;color:rgba(255,255,255,.85)}
.tuc .tulg__help-tel,.tuc .tulg__help-mail{position:relative;z-index:1;display:flex;align-items:center;gap:10px;margin:0 0 8px;color:#fff!important;text-decoration:none!important;font-weight:700}
.tuc .tulg__help-tel{font:italic 900 1.35rem var(--font-sans)}
.tuc .tulg__help-mail{font-size:.9rem;min-width:0}
.tuc .tulg__help-mail span{overflow-wrap:anywhere}
.tuc .tulg__help-tel i,.tuc .tulg__help-mail i{flex:none;color:var(--tu-orange)}
.tuc .tulg__help-tel:hover span,.tuc .tulg__help-mail:hover span{text-decoration:underline;text-decoration-color:var(--tu-orange)}
.tuc .tulg__help-btn{position:relative;z-index:1;margin:16px 0 0}
.tuc .tulg__help-btn .tu-btn{width:100%;justify-content:center}

/* Short screens: the help card would leave the list too little room, so it drops its text. */
@media (min-width:901px) and (max-height:760px){
	.tuc .tulg__help-p,.tuc .tulg__help-ic{display:none}
	.tuc .tulg__help{padding:18px 20px}
}

@media (max-width:900px){
	.tuc .tulg{grid-template-columns:minmax(0,1fr);grid-template-areas:"toc" "body" "help";gap:24px}
	.tuc .tulg__side{display:contents}
	.tuc .tulg__toc{grid-area:toc;overflow:visible;min-height:0}
	.tuc .tulg__help{grid-area:help}
	.tuc .tulg__toc summary{position:static}
	.tuc .tulg__toc details:not([open]){padding-bottom:6px}
	.tuc .tulg__body{max-width:none}
	.tuc .tulg__body p,.tuc .tulg__body li{font-size:1rem}
}
