/* R7027 - storytelling layout for Regulamin and Prywatnosc.
   Warstwa prezentacji. Tresc prawna i mechanika mobilnych sekcji pozostaja bez zmian. */
body.legal-story-page{overflow-x:hidden}
body.legal-story-page main.info-page{position:relative;isolation:isolate;overflow:clip;padding-top:0!important;padding-bottom:54px}
body.legal-story-page .legal-wrap{position:relative;z-index:3;max-width:1180px!important;padding-top:0}

.legal-story-art{position:fixed;z-index:1;left:78%;top:46%;width:min(58vw,800px);pointer-events:none;opacity:.78;transform:translate(-50%,-50%) rotate(-3deg) scale(.9);filter:drop-shadow(0 24px 30px rgba(17,24,39,.07))}
.legal-story-art img{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}

body.legal-story-page .legal-hero.legal-story-hero{position:relative;z-index:3;min-height:500px;width:min(68%,790px);display:flex;flex-direction:column;justify-content:flex-start;padding:38px 0 42px!important;margin:0;border:0;background:transparent;box-shadow:none}
body.legal-story-page .legal-story-hero h1{margin:8px 0 18px;font-size:clamp(48px,6.25vw,80px);line-height:.96;letter-spacing:-.05em;color:var(--text)}
body.legal-story-page .legal-story-hero .legal-lead{max-width:700px;font-size:clamp(17px,1.45vw,20px);line-height:1.66;color:var(--text)!important}
body.legal-story-page .legal-story-hero .legal-date{margin-top:18px;color:var(--muted);font-size:12px;font-weight:800}

body.legal-story-page .privacy-principles.legal-story-principles{position:relative;z-index:3;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 38px;padding:10px;border:1px solid var(--border);border-radius:26px;background:color-mix(in srgb,var(--surface) 94%,transparent);box-shadow:0 18px 48px rgba(17,24,39,.055)}
body.legal-story-page .privacy-principles.legal-story-principles>div{margin:0;padding:17px 18px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:none}

body.legal-story-page .legal-section.legal-story-section{position:relative;z-index:3;width:min(67%,760px);margin:30px 0;padding:34px 36px;border:1px solid var(--border);border-radius:28px;background:color-mix(in srgb,var(--surface) 97%,transparent);box-shadow:0 18px 48px rgba(17,24,39,.065);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
body.legal-story-page .legal-section.legal-story-right{margin-left:auto}
body.legal-story-page .legal-section.legal-story-left{margin-right:auto}
body.legal-story-page .legal-section.legal-story-wide{width:100%;max-width:none}
body.legal-story-page .legal-section.legal-story-featured{border-color:color-mix(in srgb,var(--orange) 44%,var(--border));background:color-mix(in srgb,var(--surface) 93%,var(--orange-pale))}
body.legal-story-page .legal-section.legal-story-faq{margin-top:44px}

body.legal-story-page .legal-section h2{margin:0 0 15px;font-size:clamp(28px,3.45vw,45px);line-height:1.06;letter-spacing:-.035em;color:var(--text)}
body.legal-story-page .legal-section h3{margin:24px 0 8px;font-size:19px;line-height:1.25;color:var(--text)}
body.legal-story-page .legal-section p,
body.legal-story-page .legal-section li{font-size:15px;line-height:1.78;color:var(--text)!important}
body.legal-story-page .legal-section p+p{margin-top:12px}
body.legal-story-page .legal-section li+li{margin-top:5px}
body.legal-story-page .legal-note{background:color-mix(in srgb,var(--orange-pale) 70%,var(--surface));border-radius:18px}
body.legal-story-page .privacy-row{grid-template-columns:minmax(160px,210px) 1fr}
body.legal-story-page .privacy-row b{color:var(--text)}
body.legal-story-page .privacy-row span{color:var(--text)}
body.legal-story-page .legal-faq details{background:color-mix(in srgb,var(--surface) 98%,transparent)}
body.legal-story-page .legal-faq details p{color:var(--text)!important}

/* Social/footer/autopromo sa pelnymi warstwami nad stalym tlem. */
body.legal-story-page .site-social-follow,
body.legal-story-page .autopromo-section,
body.legal-story-page footer.footer,
body.legal-story-page .site-mountain-band,
body.legal-story-page .site-ai-note{position:relative;z-index:6}

html[data-theme="dark"] .legal-story-art{opacity:.72;filter:brightness(.84) saturate(1.08) drop-shadow(0 24px 30px rgba(0,0,0,.14))}

@media(max-width:900px){
  body.legal-story-page .legal-story-hero{width:76%}
  body.legal-story-page .legal-section.legal-story-section{width:min(73%,760px)}
}

@media(max-width:820px){
  body.legal-story-page main.info-page{padding-top:0!important}
  body.legal-story-page .legal-wrap{padding-top:0!important}
  .legal-story-art{left:84%;top:47%;width:94vw;opacity:.34;transform:translate(-50%,-50%) rotate(-3deg) scale(.96)}
  body.legal-story-page .legal-hero.legal-story-hero{min-height:auto;width:100%;padding:14px 0 24px!important}
  body.legal-story-page .legal-story-hero h1{font-size:clamp(42px,13vw,62px)}
  body.legal-story-page .privacy-principles.legal-story-principles{grid-template-columns:1fr 1fr;margin-bottom:22px;padding:7px;border-radius:22px}
  body.legal-story-page .legal-section.legal-story-section,
  body.legal-story-page .legal-section.legal-story-left,
  body.legal-story-page .legal-section.legal-story-right,
  body.legal-story-page .legal-section.legal-story-wide{width:100%;margin:14px 0;padding:24px 20px;border-radius:23px}
  body.legal-story-page .legal-section h2{font-size:clamp(25px,7.7vw,34px)}
  body.legal-story-page .legal-section p,
  body.legal-story-page .legal-section li{font-size:14px;line-height:1.72}
  body.legal-story-page .privacy-row{grid-template-columns:1fr;gap:4px}

  /* Istniejace mobilne akordeony/tabs nadal steruja widocznoscia. */
  body.legal-story-page .public-info-mobile-collapsible{backdrop-filter:none;-webkit-backdrop-filter:none}
}

@media(max-width:520px){
  body.legal-story-page .privacy-principles.legal-story-principles{grid-template-columns:1fr}
  .legal-story-art{left:91%;width:112vw;opacity:.28}
}
