/* t187 — legal pages (Regulamin, Polityka prywatności, Polityka cookies)
   Dark glass, brand #13B8EE / #FFA04F / #68E2B4. Safari-safe. No phone mockup. */

html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h,72px) + 16px)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Compact hero: kicker + title + update date. Kill the product-hero phone bleed. */
.lg-hero-zone{padding-bottom:0;margin-bottom:0;overflow:hidden}
.lg-hero-zone::before{
  background:
    radial-gradient(860px 520px at 78% 0%, rgba(19,184,238,.30), rgba(19,184,238,.10) 40%, transparent 66%),
    radial-gradient(720px 460px at 6% 110%, rgba(255,160,79,.22), rgba(255,160,79,.08) 42%, transparent 66%),
    radial-gradient(640px 400px at 42% 0%, rgba(104,226,180,.16), transparent 58%),
    linear-gradient(180deg, #071822 0%, #0B2330 62%, #07141C 100%);
}
.lg-hero{position:relative;padding:56px 0 28px;overflow:hidden;background:transparent}
.lg-hero-inner{position:relative;z-index:1;max-width:var(--wrap,1200px)}
.lg-hero .hero-copy{max-width:760px}
.lg-hero h1{
  font-size:clamp(34px, 4.6vw, 56px);
  letter-spacing:-.045em;
  line-height:1.08;
  font-weight:750;
  margin:0;
  color:#fff;
}
.lg-updated{
  margin:16px 0 0;
  font-size:14.5px;
  color:#8AA0AB;
  letter-spacing:.01em;
}
.lg-updated time{font-variant-numeric:tabular-nums}

/* Soft brand orbs, clipped to the hero, no mockup column. */
.lg-orbs{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.lg-hero .orb{position:absolute;width:420px;height:420px;filter:none;-webkit-filter:none;background:transparent;border-radius:0;display:block}
.lg-hero .orb::before{content:"";position:absolute;pointer-events:none;inset:-80px}
.lg-hero .orb-cyan{top:-160px;right:8%;width:520px;height:520px}
.lg-hero .orb-orange{left:-80px;bottom:-220px;width:460px;height:460px}
.lg-hero .orb-lime{right:28%;bottom:-180px;width:380px;height:380px}

/* Document layout: sticky TOC + ~760px reading column. */
.lg-sec{padding:12px 0 80px;background:transparent}
.lg-layout{
  display:grid;
  grid-template-columns:minmax(220px,280px) minmax(0,760px);
  justify-content:center;
  gap:48px 56px;
  align-items:start;
}

/* TOC card */
.lg-toc{position:sticky;top:calc(var(--header-h,72px) + 16px);z-index:2}
.lg-toc-box{
  margin:0;
  border-radius:18px;
  background:rgba(14,34,48,.62);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.28);
  -webkit-backdrop-filter:blur(16px) saturate(1.15);
  backdrop-filter:blur(16px) saturate(1.15);
  overflow:hidden;
}
.lg-toc-sum{
  display:flex;
  align-items:center;
  gap:10px;
  list-style:none;
  cursor:pointer;
  padding:14px 16px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#8EE3FE;
  -webkit-user-select:none;
  user-select:none;
}
.lg-toc-sum::-webkit-details-marker{display:none}
.lg-toc-sum::marker{content:""}
.lg-toc-sum .lg-i{flex:0 0 auto;color:#13B8EE}
.lg-toc-sum span{flex:1 1 auto}
.lg-toc-chev{transition:transform .2s ease;color:#8AA0AB}
.lg-toc-box:not([open]) .lg-toc-chev{transform:rotate(-90deg)}
.lg-toc-nav{padding:0 8px 12px;max-height:calc(100vh - var(--header-h,72px) - 120px);overflow:auto;-webkit-overflow-scrolling:touch}
.lg-toc-list{list-style:none;margin:0;padding:0}
.lg-toc-list li{margin:0}
.lg-toc-list a{
  display:block;
  padding:6px 10px;
  border-radius:10px;
  color:#C9D6DE;
  text-decoration:none;
  font-size:13.5px;
  line-height:1.35;
  letter-spacing:-.01em;
  border-left:2px solid transparent;
  transition:background-color .15s ease, color .15s ease, border-color .15s ease;
}
.lg-toc-list a:hover{background:rgba(19,184,238,.10);color:#fff}
.lg-toc-list a.is-active,
.lg-toc-list a[aria-current="location"]{
  background:rgba(19,184,238,.14);
  color:#fff;
  border-left-color:#13B8EE;
  font-weight:650;
}
.lg-toc-list li.lg-toc-h3 a,
.lg-toc-list a.is-para{padding-left:18px;font-size:13px;color:#A9B8C2}
.lg-toc-list li.lg-toc-h3 a.is-active,
.lg-toc-list a.is-para.is-active,
.lg-toc-list li.lg-toc-h3 a[aria-current="location"],
.lg-toc-list a.is-para[aria-current="location"]{color:#fff}
.lg-toc-list a:focus-visible{outline:1.5px solid rgba(19,184,238,.75);outline-offset:2px}

/* Desktop: TOC is a static sticky card, not a disclosure. */
@media (min-width:1101px){
  .lg-toc-box{overflow:hidden}
  .lg-toc-box > .lg-toc-sum{cursor:default;pointer-events:none;padding-bottom:8px}
  .lg-toc-box > .lg-toc-sum .lg-toc-chev{display:none}
  .lg-toc-box > .lg-toc-nav{display:block}
}

/* Long-form typography */
.lg-article{
  max-width:760px;
  color:#D5DEE4;
  font-size:17.5px;
  line-height:1.7;
  letter-spacing:-.005em;
}
.lg-article > *:first-child{margin-top:0}
.lg-article h2,
.lg-article h3,
.lg-article h4{
  color:#fff;
  letter-spacing:-.03em;
  line-height:1.25;
  scroll-margin-top:calc(var(--header-h,72px) + 18px);
  font-weight:700;
}
.lg-article h2{
  margin:2.15em 0 .7em;
  font-size:clamp(22px, 2.2vw, 28px);
  padding-top:6px;
  border-top:1px solid rgba(255,255,255,.08);
}
.lg-article h2:first-child{border-top:0;padding-top:0;margin-top:0}
.lg-article h3{
  margin:1.6em 0 .55em;
  font-size:clamp(18px, 1.7vw, 22px);
  color:#E8F4FA;
}
.lg-article h4{margin:1.35em 0 .45em;font-size:18px}
.lg-article p{margin:0 0 1em}
.lg-article a{
  color:#13B8EE;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.lg-article a:hover{color:#8EE3FE}
.lg-article a:focus-visible{outline:1.5px solid rgba(19,184,238,.75);outline-offset:3px;border-radius:3px}
.lg-article strong{color:#F3F7F9;font-weight:650}
.lg-article ol,
.lg-article ul{
  margin:0 0 1.1em;
  padding:0 0 0 1.35em;
}
.lg-article li{margin:0 0 .45em;padding-left:.15em}
.lg-article li::marker{color:#13B8EE;font-weight:650}
.lg-article ol ol,
.lg-article ul ul,
.lg-article ol ul,
.lg-article ul ol{margin:.45em 0 .2em}
.lg-article .lg-address{
  margin:0 0 1.2em;
  padding:16px 18px;
  border-radius:16px;
  background:rgba(14,34,48,.55);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.lg-article .lg-address p{margin:0 0 .25em;color:#E8F4FA}
.lg-article .lg-address p:last-child{margin-bottom:0}

/* Duo band: drop the sticky sidebar, stack a collapsible TOC above the text. */
@media (max-width:1100px){
  .lg-layout{grid-template-columns:1fr;gap:22px;max-width:760px;margin:0 auto}
  .lg-toc{position:static;top:auto}
  .lg-toc-box{border-radius:16px}
  .lg-toc-nav{max-height:min(52vh, 420px);padding-bottom:10px}
  .lg-hero{padding:40px 0 18px}
  .lg-sec{padding:8px 0 64px}
  .lg-article{font-size:17px}
}

/* Phone */
@media (max-width:640px){
  .lg-hero{padding:28px 0 12px}
  .lg-hero h1{font-size:clamp(28px, 8.4vw, 36px);letter-spacing:-.04em}
  .lg-updated{font-size:13.5px;margin-top:12px}
  .lg-sec{padding:4px 0 56px}
  .lg-layout{gap:16px}
  .lg-article{font-size:16.5px;line-height:1.68}
  .lg-article h2{font-size:22px;margin-top:1.7em}
  .lg-article ol,
  .lg-article ul{padding-left:1.15em}
  .lg-toc-sum{padding:12px 14px;font-size:12.5px}
}

@media (prefers-reduced-motion:reduce){
  .lg-toc-chev,.lg-toc-list a{transition:none}
}
