/* =========================================================
   3KITS — Legal pages (Privacy, Terms, Cookies)
   Hero with tabs between the three pages, a sticky numbered
   "On this page" list, readable numbered sections and a
   reading-progress bar. Loads after style3.css.
   ========================================================= */

/* reading progress across the top, under the header */
.lg-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 90; height: 2px; pointer-events: none; }
.lg-progress i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* ---------- Hero ---------- */
.lg-hero { padding: calc(84px + clamp(36px, 5vw, 80px)) 0 clamp(32px, 4vw, 56px); }
.lg-crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lg-crumbs a { color: var(--muted); transition: color .3s; }
.lg-crumbs a:hover { color: var(--orange); }
.lg-crumbs [aria-current] { color: var(--text); }
.lg-hero__title { margin-top: clamp(18px, 2.4vw, 32px); font-family: var(--display); font-weight: 600; font-size: clamp(46px, 8vw, 150px); line-height: .98; letter-spacing: 0; }
.lg-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-top: clamp(22px, 2.8vw, 40px); }
.lg-hero__lead { max-width: 52ch; font-size: clamp(17px, 1.35vw, 21px); color: var(--muted); }
.lg-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.lg-hero__meta span { padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-hero__meta b { font-weight: 500; color: var(--text); }

/* switch between the three legal pages */
.lg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 3.6vw, 52px); padding-top: clamp(22px, 2.6vw, 34px); border-top: 1px solid var(--line-2); }
.lg-tabs a { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 100px; border: 1px solid var(--line-2); font-size: 15px; color: var(--muted); transition: color .3s, border-color .3s, background .3s; }
.lg-tabs a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.lg-tabs a:hover { color: var(--text); border-color: rgba(255, 255, 255, .42); }
.lg-tabs a[aria-current] { color: var(--text); border-color: var(--orange); background: rgba(242, 117, 26, .1); }
.lg-tabs a[aria-current]::before { border-color: transparent; background: var(--grad); }

/* ---------- Body ---------- */
.lg-body { padding: clamp(24px, 3vw, 48px) 0 calc(var(--sec) * 1.3); }
.lg-grid { display: grid; grid-template-columns: minmax(240px, .32fr) 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.lg-side { position: sticky; top: 120px; display: grid; gap: 28px; }
.lg-toc { counter-reset: toc; margin: 14px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line-2); }
.lg-toc a { counter-increment: toc; position: relative; display: flex; gap: 12px; padding: 9px 0 9px 20px; font-size: 15px; line-height: 1.35; color: var(--dim); transition: color .3s; }
.lg-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; padding-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--dim); transition: color .3s; }
.lg-toc a::after { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--grad); transform: scaleY(0); transition: transform .4s var(--ease); }
.lg-toc a:hover { color: var(--text); }
.lg-toc a.is-on { color: var(--text); }
.lg-toc a.is-on::before { color: var(--orange); }
.lg-toc a.is-on::after { transform: scaleY(1); }
.lg-help { padding: 22px; border-radius: 20px; font-size: 15px; color: var(--muted); }
.lg-help strong { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text); }
.lg-help a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.lg-help a:hover { color: var(--orange); }

/* the policy text itself */
.lg-content { counter-reset: sec; max-width: 820px; min-width: 0; }
.lg-summary { margin-bottom: clamp(36px, 4.4vw, 64px); padding: clamp(22px, 2.6vw, 36px); border-radius: 24px; }
.lg-summary ul { display: grid; gap: 12px; margin-top: 16px; }
.lg-summary li { display: flex; gap: 14px; font-size: clamp(16px, 1.2vw, 18px); }
.lg-summary li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .62em; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(242, 117, 26, .15); }
.lg-sec { padding: clamp(28px, 3.2vw, 44px) 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.lg-sec h2 { counter-increment: sec; display: flex; align-items: baseline; gap: 18px; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 32px); line-height: 1.2; letter-spacing: 0; }
.lg-sec h2::before { content: counter(sec, decimal-leading-zero); flex: none; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: .1em; color: var(--orange); }
.lg-sec h3 { margin: 26px 0 10px; font-weight: 500; font-size: 18px; }
.lg-sec p, .lg-sec li { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.75; color: var(--muted); }
.lg-sec p { margin-top: 16px; }
.lg-sec strong { font-weight: 500; color: var(--text); }
.lg-sec a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; transition: color .3s; }
.lg-sec a:hover { color: var(--orange); }
.lg-sec ul { display: grid; gap: 8px; margin-top: 14px; }
.lg-sec ul li { position: relative; padding-left: 24px; }
.lg-sec ul li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--orange); }

/* cookie table */
.lg-table { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.lg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.lg-table th, .lg-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lg-table th { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: rgba(255, 255, 255, .03); }
.lg-table td { color: var(--muted); }
.lg-table td:first-child { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.lg-table tr:last-child td { border-bottom: 0; }

/* contact card closing the page */
.lg-contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; margin-top: clamp(28px, 3.2vw, 44px); padding: clamp(24px, 3vw, 40px); border-radius: 28px; }
.lg-contact h2 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 32px); letter-spacing: 0; }
.lg-contact p { margin-top: 8px; color: var(--muted); }
.lg-contact address { margin-top: 12px; font-style: normal; font-size: 15px; color: var(--muted); }
.lg-contact address a { color: var(--text); }
.lg-contact address a:hover { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lg-grid { grid-template-columns: 1fr; }
  .lg-side { position: static; }
  .lg-toc { display: none; }
  .lg-side .eyebrow { display: none; }
}
@media (max-width: 700px) {
  .lg-contact { grid-template-columns: 1fr; }
  .lg-tabs a { padding: 10px 16px; font-size: 14px; }
}
