/* =========================================================
   CORE THEME VARIABLES
   ========================================================= */
   :root{
    --bg:#ffffff;
    --bg-soft:#f7f9fc;
    --text:#0b1220;
    --muted:#475569;
  
    --brand:#ffcc00;
    --brand-2:#ffe066;
  
    --radius:14px;
    --border:1px solid rgba(0,0,0,.08);
    --shadow:0 10px 30px rgba(10,15,30,.08);
  
    --container:1200px;
    --pad:clamp(16px, 4vw, 40px);
  }
  
  html[data-theme="dark"]{
    --bg:#0e0f13;
    --bg-soft:#0b0d11;
    --text:#eef2f6;
    --muted:#a1a8b3;
  
    --border:1px solid rgba(255,255,255,.12);
    --shadow:0 10px 30px rgba(0,0,0,.5);
  }
  
  /* =========================================================
     RESET & BASE
     ========================================================= */
  *,
  *::before,
  *::after{
    box-sizing:border-box;
  }
  
  html,body{
    margin:0;
    padding:0;
    min-height:100%;
  }
  
  body{
    background:var(--bg);
    color:var(--text);
    font:16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  }
  
  img{
    max-width:100%;
    display:block;
  }
  
  a{
    color:inherit;
    text-decoration:none;
  }
  
  [hidden]{
    display:none !important;
  }
  
  /* =========================================================
     LAYOUT STRUCTURE
     header | hero | main | footer
     ========================================================= */
  
  /* Global container – wspólna oś wyrównania */
  .container{
    width:100%;
    max-width:var(--container);
    margin:0 auto;
    padding-left:var(--pad);
    padding-right:var(--pad);
  }
  
  /* ---------- HEADER ---------- */
  header{
    width:100%;
    position:relative;
    z-index:1000;
  }
  
  /* ---------- HERO ---------- */
  .hero{
    width:100%;
    position:relative;
  }
  
  /* ---------- MAIN ---------- */
  main{
    width:100%;
    position:relative;
  }
  
  /* ---------- FOOTER ---------- */
  footer{
    width:100%;
    position:relative;
  }
  
  /* =========================================================
     SECTIONS
     ========================================================= */
  .section{
    padding:clamp(32px, 6vw, 64px) 0;
  }
  
  .section--tight{
    padding:16px 0;
  }
  
  /* =========================================================
     BASIC UI PRIMITIVES
     ========================================================= */
  .btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 16px;
    border-radius:12px;
    border:var(--border);
    background:var(--bg-soft);
    font-weight:600;
    cursor:pointer;
  }
  
  .btn--brand{
    background:linear-gradient(135deg, var(--brand), var(--brand-2));
    color:#000;
    border:none;
  }
  
  /* =========================================================
     TYPOGRAPHY HELPERS
     ========================================================= */
  .h1{font-size:clamp(32px,5vw,48px);font-weight:800;line-height:1.1}
  .h2{font-size:clamp(26px,4vw,36px);font-weight:800}
  .h3{font-size:22px;font-weight:700}
  
  .muted{color:var(--muted)}
  .center{text-align:center}
  
  /* =========================================================
     UTILITIES
     ========================================================= */
  .full-width{
    width:100%;
  }
  
  /* LEGAL TOC STICKY SETTING */
  .legal__toc{
    position: sticky;
    top: 88px; /* 72px topbar + oddech */
    align-self: start;
    height: fit-content;
    min-height: 0;
  }
  
  /* zachowanie na mniejszych ekranach */
  @media (max-width: 980px){
    .legal__wrap{ grid-template-columns: 1fr; }
  }
  
  /* Na bardzo małych ekranach (wąskie telefony) możemy wyłączyć sticky, jeśli przeszkadza */
  @media (max-width: 420px){
    .legal__toc{ position: static; top: auto; }
  }
  
  @media (max-width: 480px){
    .legal__toc-inner{ padding: 12px 12px; border-radius: 16px; }
  }