/* ==========================================================================
   PLIK: css/mf-legal-doc.css (sklep.manawaflow.pl) — plik-matka: shared/mf-legal-doc.css
   Dokumenty prawne we WSZYSTKICH serwisach (Akademia, platforma, coaching,
   manawaflow.pl, Moment Mocy…) — 09.10.2026.

   Ten sam wygląd co dokumenty w sklepie (css/shop_wow.css, sekcja
   „DOKUMENTY PRAWNE”, klasy .lg-*): grafitowa scena z zorzą, echem i ziarnem,
   Poppins cienko + słowo-klucz pogrubione, złota włoskowata kreska, spis
   treści obok szerokiej kolumny tekstu, pasek postępu, druk / PDF.
   Znaczniki tworzy includes/manawa_legal.php (manawaLegalRenderPage / Hub).

   Plik jest samodzielny: nie potrzebuje zmiennych ani klas serwisu.
   Wysokość menu serwisu: --lg-nav (domyślnie 76px) — można nadpisać na <body>.
   ========================================================================== */
.lg-doc,
.lg-hub {
    --lg-gold:     #FDC500;
    --lg-violet:   #6A0DAD;
    --lg-dark:     #0F1219;
    --lg-head:     'Poppins', system-ui, sans-serif;
    --lg-body:     'Lato', system-ui, sans-serif;

    --lg-ink:      #12121C;
    --lg-paper:    #F6F4EF;
    --lg-muted:    rgba(246, 244, 239, .70);
    --lg-soft:     rgba(246, 244, 239, .46);
    --lg-hair:     rgba(246, 244, 239, .16);
    --lg-canvas:   #FBFAF7;
    --lg-warm:     #F4F1EA;
    --lg-line:     rgba(15, 18, 25, .12);
    --lg-line-soft: rgba(15, 18, 25, .07);
    --lg-text:     rgba(15, 18, 25, .76);
    --lg-gold-deep: #B88A00;
    --lg-ease:     cubic-bezier(.2, .8, .2, 1);
    --lg-wrap:     min(1180px, calc(100% - 10vw));

    display: block;
    position: relative;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--lg-canvas);
    font-family: var(--lg-body);
    color: var(--lg-text);
    line-height: 1.7;
    text-align: left;
    overflow-x: clip;
}
.lg-doc *, .lg-doc *::before, .lg-doc *::after,
.lg-hub *, .lg-hub *::before, .lg-hub *::after { box-sizing: border-box; }

/* Neutralizacja stylów serwisu (np. Akademia barwi i pochyla każde <i> i <em>) */
.lg-doc i, .lg-hub i { font-style: normal; color: inherit; }
.lg-doc .legal-content em,
.lg-doc .legal-content i { font-family: inherit; font-weight: inherit; font-style: italic; color: inherit; }
.lg-doc h1, .lg-doc h2, .lg-doc h3, .lg-hub h1, .lg-hub h2 { text-transform: none; text-shadow: none; }
.lg-doc img, .lg-hub img { border-radius: 0; }
.lg-doc a, .lg-hub a { text-decoration: none; }
.lg-doc button { line-height: 1.2; }

.legal-files-list,
.lg-others-grid { list-style: none; margin: 0; padding: 0; }
.legal-file-icon,
.legal-hub-card-icon { display: flex; align-items: center; justify-content: center; }

@keyframes lgDrift {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(3%, -2%) rotate(6deg) scale(1.08); }
}
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgPolysk {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Scena (nagłówek) ---------------------------------------------------- */
.lg-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--lg-nav, 76px) + clamp(56px, 8vh, 96px)) 0 clamp(64px, 9vh, 96px);
    background: var(--lg-ink);
    color: var(--lg-paper);
}
.lg-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(130% 100% at 40% 40%, transparent 40%, rgba(6, 6, 11, .6) 100%);
}
.lg-aurora {
    position: absolute;
    inset: -25%;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(40% 46% at 80% 30%, rgba(0, 81, 210, .42), transparent 72%),
        radial-gradient(42% 50% at 14% 80%, rgba(124, 32, 196, .48), transparent 72%),
        radial-gradient(28% 26% at 52% 0%, rgba(253, 197, 0, .10), transparent 70%);
    filter: blur(50px);
    animation: lgDrift 40s ease-in-out infinite alternate;
}
.lg-grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .06;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Echo — złote okręgi rozchodzą się jak fala głosu */
.lg-echo {
    position: absolute;
    z-index: -2;
    right: -16%;
    top: 50%;
    width: clamp(480px, 58vw, 900px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    pointer-events: none;
}
.lg-hero--center .lg-echo { right: auto; left: 50%; top: auto; bottom: -60%; transform: translateX(-50%); }
.lg-echo span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(253, 197, 0, .45);
    opacity: 0;
    transform: scale(.3);
    animation: lgEcho 9s cubic-bezier(.25, .6, .3, 1) infinite;
}
.lg-echo span:nth-child(2) { animation-delay: 2.25s; }
.lg-echo span:nth-child(3) { animation-delay: 4.5s; }
.lg-echo span:nth-child(4) { animation-delay: 6.75s; }
.lg-echo::before,
.lg-echo::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(246, 244, 239, .07); }
.lg-echo::before { inset: 22%; }
.lg-echo::after { inset: 6%; border-style: dashed; border-color: rgba(253, 197, 0, .12); animation: lgSpin 140s linear infinite; }
@keyframes lgEcho {
    0%   { opacity: 0; transform: scale(.3); }
    12%  { opacity: .5; }
    100% { opacity: 0; transform: scale(1); }
}

.lg-hero-inner { position: relative; z-index: 2; width: var(--lg-wrap); margin: 0 auto; }
.lg-hero--center .lg-hero-inner { text-align: center; max-width: 900px; }

/* Etykieta / okruszek z włoskowatą kreską */
.lg-hero .page-eyebrow,
.lg-crumb,
.lg-label {
    display: inline-flex !important;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    font-family: var(--lg-head);
    font-size: .64rem !important;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--lg-gold) !important;
    text-decoration: none;
}
.lg-label::before,
.lg-hero--center .lg-label::after { content: ''; width: clamp(24px, 3vw, 44px); height: 1px; background: currentColor; opacity: .6; }
.lg-crumb i { font-size: .8em; transition: transform .4s var(--lg-ease); }
.lg-crumb:hover { color: var(--lg-paper) !important; }
.lg-crumb:hover i { transform: translateX(-4px); }

.lg-hero .lg-title {
    font-family: var(--lg-head);
    font-weight: 200;
    font-size: clamp(2.3rem, 4.8vw, 4.1rem) !important;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--lg-paper);
    margin: 0 0 26px !important;
    max-width: 22ch;
    text-wrap: balance;
}
.lg-hero--center .lg-title { margin-left: auto !important; margin-right: auto !important; }
.lg-hero .lg-title strong {
    font-weight: 500;
    color: transparent;
    background: linear-gradient(115deg, #fff 0%, #FDC500 40%, #ffe98a 60%, #FDC500 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    animation: lgPolysk 9s ease-in-out infinite;
}
.lg-hub .legal-hub-lead {
    max-width: 52ch;
    margin: 0 auto !important;
    font-weight: 300;
    font-size: clamp(1.02rem, 1.3vw, 1.18rem) !important;
    line-height: 1.75;
    color: var(--lg-muted) !important;
}

/* Metryka dokumentu: data, czas czytania, liczba rozdziałów, druk */
.lg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 0;
    padding-top: 22px;
    border-top: 1px solid var(--lg-hair);
    max-width: 900px;
}
.lg-meta .legal-updated,
.lg-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    padding: 0 18px;
    font-family: var(--lg-head);
    font-size: .66rem !important;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lg-muted) !important;
    border-left: 1px solid var(--lg-hair);
}
.lg-meta .legal-updated { padding-left: 0; border-left: 0; }
.lg-meta i { color: var(--lg-gold); font-size: .95em; }
.lg-print {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(246, 244, 239, .32);
    color: var(--lg-paper);
    font-family: var(--lg-head);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: box-shadow .4s var(--lg-ease), color .4s var(--lg-ease);
}
.lg-print:hover { color: var(--lg-gold); box-shadow: inset 0 0 0 1px rgba(253, 197, 0, .7); }
.lg-missing { font-family: var(--lg-head); font-weight: 200; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.03em; color: var(--lg-paper); margin: 0; }

/* Pasek postępu czytania */
.lg-progress { position: fixed; left: 0; right: 0; top: var(--lg-nav, 76px); height: 2px; z-index: 999; pointer-events: none; }
.lg-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--lg-violet), var(--lg-gold)); transform: scaleX(0); transform-origin: left; }

/* --- Układ: spis treści + treść ------------------------------------------ */
.lg-layout {
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
    width: var(--lg-wrap);
    margin: 0 auto;
    padding: clamp(56px, 7vw, 96px) 0 clamp(70px, 9vw, 120px);
}
.lg-layout--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

.lg-toc {
    position: sticky;
    top: calc(var(--lg-nav, 76px) + 34px);
    max-height: calc(100vh - var(--lg-nav, 76px) - 60px);
    overflow-y: auto;
    padding: 26px 0 0;
    border-top: 2px solid var(--lg-gold);
    scrollbar-width: thin;
}
.lg-toc-label {
    display: block;
    margin: 0 0 14px;
    font-family: var(--lg-head);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--lg-violet);
}
.lg-toc-list { list-style: none; margin: 0; padding: 0; }
.lg-toc-list a {
    display: flex;
    gap: 12px;
    padding: 9px 0 9px 14px;
    border-left: 1px solid var(--lg-line);
    font-family: var(--lg-head);
    font-size: .84rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--lg-text);
    text-decoration: none;
    transition: color .3s var(--lg-ease), border-color .3s var(--lg-ease), background .3s var(--lg-ease);
}
.lg-toc-num { flex: 0 0 auto; min-width: 2.6em; font-weight: 300; color: var(--lg-gold-deep); }
.lg-toc-list a:hover { color: var(--lg-dark); border-left-color: rgba(15, 18, 25, .4); }
.lg-toc-list a.is-active { color: var(--lg-violet); border-left: 2px solid var(--lg-gold); padding-left: 13px; background: linear-gradient(90deg, rgba(253, 197, 0, .08), transparent); }
.lg-toc-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-bottom: 5px;
    font-family: var(--lg-head);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lg-violet);
    text-decoration: none;
    border-bottom: 1px solid rgba(106, 13, 173, .3);
}
.lg-toc-all:hover { color: var(--lg-dark); border-bottom-color: var(--lg-gold); }

/* --- Treść dokumentu ------------------------------------------------------ */
.lg-body { min-width: 0; max-width: 820px; }
.lg-doc .legal-content {
    font-size: 1.0625rem !important;
    line-height: 1.85 !important;
    color: var(--lg-text);
}
.lg-doc .legal-content p {
    margin: 0 0 1.05em;
    font-size: inherit;
    line-height: inherit;
    color: var(--lg-text);
}
.lg-doc .legal-content p:empty,
.lg-doc .legal-content p:has(> br:only-child) { margin: 0; line-height: .4; font-size: 0; }
.lg-doc .legal-content h2 {
    scroll-margin-top: calc(var(--lg-nav, 76px) + 30px);
    margin: 2.4em 0 .85em;
    padding: 1.6em 0 0;
    border: 0;
    border-top: 1px solid var(--lg-line);
    font-family: var(--lg-head);
    font-weight: 300;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    line-height: 1.22;
    letter-spacing: -.02em;
    color: var(--lg-dark);
}
.lg-doc .legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.lg-doc .legal-content .lg-par {
    display: block;
    margin-bottom: 10px;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--lg-gold-deep);
}
.lg-doc .legal-content h3 {
    margin: 1.8em 0 .6em;
    font-family: var(--lg-head);
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: -.01em;
    color: var(--lg-dark);
}
.lg-doc .legal-content strong:not([style*="color"]) { color: var(--lg-dark); font-weight: 700; }
.lg-doc .legal-content a:not([style*="color"]) {
    color: var(--lg-violet);
    text-decoration: none;
    border-bottom: 1px solid rgba(106, 13, 173, .32);
    transition: border-color .3s var(--lg-ease), color .3s var(--lg-ease);
}
.lg-doc .legal-content a:not([style*="color"]):hover { color: var(--lg-dark); border-bottom-color: var(--lg-gold); }

/* Listy: romby zamiast kropek, numery cienką Poppins */
.lg-doc .legal-content ul,
.lg-doc .legal-content ol {
    margin: .4em 0 1.3em;
    padding: 0;
    list-style: none;
    font-size: inherit;
    color: var(--lg-text);
}
.lg-doc .legal-content li { position: relative; margin: 0 0 .55em; padding-left: 2em; line-height: 1.75; }
.lg-doc .legal-content li:last-child { margin-bottom: 0; }
.lg-doc .legal-content ul > li::before {
    content: '';
    position: absolute;
    left: .35em;
    top: .72em;
    width: 7px;
    height: 7px;
    box-shadow: inset 0 0 0 1.5px var(--lg-violet);
    transform: rotate(45deg);
}
.lg-doc .legal-content ol { counter-reset: lgOl; }
.lg-doc .legal-content ol > li { counter-increment: lgOl; }
.lg-doc .legal-content ol > li::before {
    content: counter(lgOl) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--lg-head);
    font-weight: 300;
    color: var(--lg-gold-deep);
}
.lg-doc .legal-content li > ul,
.lg-doc .legal-content li > ol { margin: .5em 0 .2em; }
.lg-doc .legal-content li > ul > li::before { box-shadow: inset 0 0 0 1.5px var(--lg-gold-deep); }

/* Tabele w dokumentach (np. zwroty w skrócie, dostawa) */
.lg-doc .legal-content .lg-table-wrap { margin: .6em 0 1.5em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lg-doc .legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92em;
    line-height: 1.6;
    color: var(--lg-text);
}
.lg-doc .legal-content th,
.lg-doc .legal-content td {
    padding: .7em .9em;
    border-bottom: 1px solid var(--lg-line);
    text-align: left;
    vertical-align: top;
}
.lg-doc .legal-content th {
    font-family: var(--lg-head);
    font-weight: 600;
    font-size: .78em;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lg-dark);
    border-bottom: 2px solid var(--lg-gold);
}
.lg-doc .legal-content td:first-child { font-weight: 700; color: var(--lg-dark); }
.lg-doc .legal-content .lg-quote {
    margin: .4em 0 1.3em;
    padding: .9em 1.1em;
    border-left: 3px solid var(--lg-gold);
    background: rgba(253, 197, 0, .07);
}
.lg-doc .legal-content .lg-quote p:last-child { margin-bottom: 0; }
@media print {
    .lg-doc .legal-content .lg-table-wrap { overflow: visible; }
}

/* --- Pliki do pobrania (dokument i hub) ---------------------------------- */
.lg-doc .legal-page-attachments {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--lg-line);
}
.lg-doc .legal-attachments-heading,
.lg-hub .legal-hub-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 26px;
    font-family: var(--lg-head);
    font-weight: 300;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    letter-spacing: -.025em;
    color: var(--lg-dark);
}
.lg-doc .legal-attachments-heading i,
.lg-hub .legal-hub-heading i { display: none; }
.lg-hub .legal-hub-heading strong,
.lg-doc .legal-attachments-heading strong { font-weight: 600; }

.lg-files .legal-files-list { display: grid; gap: 12px; }
.lg-files .legal-file-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 24px !important;
    background: #fff;
    border: 1px solid var(--lg-line-soft) !important;
    transition: transform .5s var(--lg-ease), box-shadow .5s var(--lg-ease), border-color .5s var(--lg-ease);
}
.lg-files .legal-file-item:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 18, 25, .14) !important;
    box-shadow: 0 26px 50px -32px rgba(15, 18, 25, .38);
}
.lg-files .legal-file-icon {
    position: relative;
    flex: 0 0 auto;
    width: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    background: transparent !important;
    color: var(--lg-violet) !important;
    box-shadow: inset 0 0 0 1px rgba(106, 13, 173, .32);
    font-size: 1.2rem !important;
}
.lg-files .legal-file-icon::after {
    content: attr(data-ext);
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    padding: 2px 6px;
    background: var(--lg-ink);
    font-family: var(--lg-head);
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--lg-gold);
    white-space: nowrap;
}
.lg-files .legal-file-body { flex: 1; min-width: 0; }
.lg-files .legal-file-body strong {
    display: block;
    font-family: var(--lg-head);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: -.01em;
    color: var(--lg-dark);
}
.lg-files .legal-file-body p { margin: 4px 0 0; font-size: .9rem; color: var(--lg-text); }
.lg-files .legal-file-meta {
    display: block;
    margin-top: 5px;
    font-family: var(--lg-head);
    font-size: .64rem !important;
    letter-spacing: .08em;
    color: rgba(15, 18, 25, .5);
    overflow-wrap: anywhere;
}
.lg-files .legal-file-dl {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px !important;
    background: var(--lg-ink) !important;
    border: 0 !important;
    color: var(--lg-paper) !important;
    font-family: var(--lg-head);
    font-size: .66rem !important;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .4s var(--lg-ease), color .4s var(--lg-ease);
}
.lg-files .legal-file-dl i { color: var(--lg-gold); }
.lg-files .legal-file-dl:hover { background: var(--lg-violet) !important; color: #fff !important; }

/* --- Inne dokumenty i stopka dokumentu ------------------------------------ */
.lg-others { margin-top: 3.4em; padding-top: 2em; border-top: 1px solid var(--lg-line); }
.lg-others-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lg-other {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--lg-line-soft);
    color: var(--lg-dark);
    text-decoration: none;
    transition: border-color .4s var(--lg-ease), box-shadow .4s var(--lg-ease);
}
.lg-other::before {
    content: '';
    position: absolute;
    left: -1px; top: -1px; bottom: -1px;
    width: 2px;
    background: var(--lg-gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .5s var(--lg-ease);
}
.lg-other-title { font-family: var(--lg-head); font-weight: 400; font-size: .95rem; line-height: 1.4; letter-spacing: -.005em; }
.lg-other i { color: var(--lg-violet); font-size: .8rem; transition: transform .4s var(--lg-ease); }
.lg-other:hover { border-color: rgba(15, 18, 25, .14); box-shadow: 0 22px 44px -30px rgba(15, 18, 25, .35); }
.lg-other:hover::before { transform: scaleY(1); }
.lg-other:hover i { transform: translateX(4px); }

.lg-doc .legal-page-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 3em;
    padding-top: 1.8em;
    border-top: 1px solid var(--lg-line);
}
.lg-doc .legal-page-nav .lg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: transparent;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(15, 18, 25, .3);
    color: var(--lg-dark);
    font-family: var(--lg-head);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .4s var(--lg-ease), color .4s var(--lg-ease), box-shadow .4s var(--lg-ease);
}
.lg-doc .legal-page-nav .lg-btn:hover { background: var(--lg-ink); color: var(--lg-paper); box-shadow: inset 0 0 0 1px var(--lg-ink); }
.lg-top {
    font-family: var(--lg-head);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lg-violet);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(106, 13, 173, .3);
}
.lg-top:hover { color: var(--lg-dark); border-bottom-color: var(--lg-gold); }

/* --- Hub: sekcje i karty dokumentów --------------------------------------- */
.lg-hub .lg-sec {
    width: var(--lg-wrap);
    margin: 0 auto;
    padding: clamp(60px, 7vw, 96px) 0 0;
}
.lg-hub .lg-sec + .lg-sec { padding-top: clamp(56px, 6vw, 84px); }
.lg-hub .legal-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}
.lg-hub .legal-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(26px, 2.4vw, 34px) clamp(24px, 2.2vw, 30px) clamp(24px, 2.2vw, 30px);
    background: #fff;
    border: 1px solid var(--lg-line-soft);
    box-shadow: none;
    color: var(--lg-dark);
    text-decoration: none;
    transition: transform .55s var(--lg-ease), box-shadow .55s var(--lg-ease), border-color .55s var(--lg-ease);
}
.lg-hub .legal-hub-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: var(--lg-gold);
    transform: scaleX(.18);
    transform-origin: left;
    transition: transform .6s var(--lg-ease);
}
.lg-hub .legal-hub-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 18, 25, .14);
    box-shadow: 0 34px 70px -36px rgba(15, 18, 25, .38);
}
.lg-hub .legal-hub-card:hover::before { transform: scaleX(1); }
.lg-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.lg-hub .legal-hub-card-icon {
    width: 46px;
    height: 46px;
    background: transparent;
    color: var(--lg-violet);
    box-shadow: inset 0 0 0 1px rgba(106, 13, 173, .32);
    font-size: 1rem;
    transition: background .45s var(--lg-ease), color .45s var(--lg-ease), box-shadow .45s var(--lg-ease);
}
.lg-hub .legal-hub-card:hover .legal-hub-card-icon { background: var(--lg-ink); color: var(--lg-gold); box-shadow: none; }
.lg-card-num {
    font-family: var(--lg-head);
    font-weight: 200;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -.04em;
    color: rgba(15, 18, 25, .16);
    transition: color .55s var(--lg-ease);
}
.lg-hub .legal-hub-card:hover .lg-card-num { color: var(--lg-gold-deep); }
.lg-hub .legal-hub-card strong {
    font-family: var(--lg-head);
    font-weight: 500;
    font-size: 1.12rem;
    line-height: 1.4;
    letter-spacing: -.01em;
    color: var(--lg-dark);
}
.lg-hub .legal-hub-card-meta {
    font-family: var(--lg-head);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(15, 18, 25, .5);
}
.lg-hub .legal-hub-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-top: auto;
    padding: 18px 0 5px;
    border-bottom: 1px solid rgba(106, 13, 173, .3);
    font-family: var(--lg-head);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lg-violet);
    transition: color .4s var(--lg-ease), border-color .4s var(--lg-ease);
}
.lg-hub .legal-hub-card-link i { font-size: .85em; transition: transform .4s var(--lg-ease); }
.lg-hub .legal-hub-card:hover .legal-hub-card-link { color: var(--lg-dark); border-bottom-color: var(--lg-gold); }
.lg-hub .legal-hub-card:hover .legal-hub-card-link i { transform: translateX(5px); }

.lg-hub .legal-hub-note {
    width: var(--lg-wrap);
    margin: clamp(56px, 6vw, 84px) auto 0 !important;
    padding: 0 0 clamp(70px, 9vw, 120px);
    font-family: var(--lg-head);
    font-weight: 300;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    letter-spacing: -.005em;
    color: var(--lg-text);
}
.lg-hub .legal-hub-note::before {
    content: '';
    display: block;
    width: 56px;
    height: 1px;
    margin-bottom: 22px;
    background: var(--lg-gold);
}
.lg-hub .legal-hub-note a { color: var(--lg-violet); border-bottom: 1px solid rgba(106, 13, 173, .32); text-decoration: none; }
.lg-hub .legal-hub-note a:hover { color: var(--lg-dark); border-bottom-color: var(--lg-gold); }

/* --- Wąskie ekrany ---------------------------------------------------------- */
@media (max-width: 1000px) {
    .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .lg-toc { position: static; max-height: none; padding-top: 22px; }
    .lg-toc-list { columns: 2; column-gap: 28px; }
    .lg-toc-list li { break-inside: avoid; }
}
@media (max-width: 640px) {
    .lg-meta .legal-updated, .lg-meta-item { padding: 0 12px 0 0; border-left: 0; flex-basis: 100%; }
    .lg-print { margin-left: 0; margin-top: 6px; }
    .lg-toc-list { columns: 1; }
    .lg-others-grid { grid-template-columns: minmax(0, 1fr); }
    .lg-files .legal-file-item { flex-wrap: wrap; gap: 16px 18px; }
    .lg-files .legal-file-dl { width: 100%; justify-content: center; }
    .lg-echo { right: -60%; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-aurora, .lg-echo::after, .lg-hero .lg-title strong { animation: none; }
    .lg-echo span { animation: none; opacity: 0; }
    .lg-echo span:first-child { opacity: .3; transform: scale(.7); }
}

/* --- Druk (przycisk „Drukuj / PDF”) — sam dokument, czarno na białym --- */
@media print {
    .navbar, footer, .footer, .mf-newsletter, .lg-toc, .lg-progress, .lg-others, .legal-page-nav,
    .lg-print, .lg-aurora, .lg-echo, .lg-grain, .lg-crumb, .cookie-banner, #cookieBanner { display: none !important; }
    .lg-doc, .lg-hero { background: #fff !important; color: #000 !important; }
    .lg-hero { padding: 0 0 16px !important; }
    .lg-hero::after { display: none; }
    .lg-hero .lg-title, .lg-hero .lg-title strong { color: #000 !important; background: none !important; -webkit-text-fill-color: #000; font-size: 22pt !important; animation: none; }
    .lg-meta { border-top-color: #ccc; }
    .lg-meta .legal-updated, .lg-meta-item, .lg-meta i { color: #333 !important; }
    .lg-layout { display: block; width: 100%; padding: 12px 0 0; }
    .lg-doc .legal-content { font-size: 10.5pt !important; line-height: 1.55 !important; color: #000; }
    .lg-doc .legal-content p, .lg-doc .legal-content li { color: #000; }
    .lg-doc .legal-content h2 { font-size: 13pt; break-after: avoid; color: #000; }
    .lg-files .legal-file-dl { display: none; }
}

/* Okruszek ma strzałkę — bez kreski dziedziczonej z .page-eyebrow */
.lg-hero .lg-crumb::before { content: none !important; display: none !important; }

/* --- Uzupełnienia dla serwisów spoza sklepu ------------------------------ */
.lg-hero .lg-crumb::before { content: none !important; display: none !important; }
.lg-hero .legal-hub-lead a { color: var(--lg-gold); border-bottom: 1px solid rgba(253, 197, 0, .4); }
.lg-doc--missing .legal-hub-lead { margin: 22px auto 0 !important; max-width: 52ch; color: var(--lg-muted); font-weight: 300; }

/* Strona zbiorcza: pliki z biblioteki */
.lg-hub .legal-attachments-heading {
    display: block;
    margin: 0 0 26px;
    font-family: var(--lg-head);
    font-weight: 300;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -.025em;
    color: var(--lg-dark);
}
.lg-hub .legal-attachments-heading strong { font-weight: 600; }
.lg-hub .legal-hub-heading { line-height: 1.2; }
.lg-hub .legal-page-attachments { margin: 0; padding: 0; border: 0; }
.lg-hub .legal-hub-empty { margin: 0; font-size: 1.05rem; color: var(--lg-text); }
.lg-hub .legal-hub-empty a { color: var(--lg-violet); border-bottom: 1px solid rgba(106, 13, 173, .32); }

/* Druk: menu i stopki wszystkich serwisów */
@media print {
    nav, .navbar, .landing-nav, .landing-footer, .site-header, .site-footer,
    .mm-header, .mm-footer, .cf-nav, .mf-newsletter, .newsletter-strip, .cookie-banner, #cookieBanner { display: none !important; }
    body { background: #fff !important; }
    body::before, body::after { display: none !important; }
}
.lg-doc .legal-attachments-heading, .lg-hub .legal-hub-heading { display: block; }
