/* =========================================================
   agatameble.click - style stron prawnych (wspólne dla wszystkich wersji)
   Wymaga tokenów z motywu (style.css / skin-*).
   ========================================================= */
.legal-hero { background: var(--grad); color: #fff; border-radius: var(--r-xl); padding: 40px 44px; position: relative; overflow: hidden; margin: 22px 0 30px; }
.legal-hero::after { content:""; position:absolute; right:-60px; top:-60px; width:240px; height:240px; border-radius:50%; background:rgba(255,255,255,.12); }
.legal-hero .eyebrow { color: #fff; opacity: .85; }
.legal-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; margin: 10px 0 8px; }
.legal-hero p { opacity: .92; max-width: 60ch; margin: 0; }
.legal-hero .upd { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .82rem; background: rgba(255,255,255,.16); padding: .4rem .9rem; border-radius: var(--pill); }

.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.legal-toc { position: sticky; top: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.legal-toc h6 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.legal-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.legal-toc a { counter-increment: toc; display: flex; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .88rem; font-weight: 500; transition: .15s; }
.legal-toc a::before { content: counter(toc); width: 22px; height: 22px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: .74rem; display: grid; place-items: center; flex-shrink: 0; }
.legal-toc a:hover, .legal-toc a.active { background: var(--brand-soft); color: var(--brand); }
.legal-toc a:hover::before, .legal-toc a.active::before { background: var(--brand); color: #fff; }

.legal-body { max-width: none; }
.legal-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 34px; margin-bottom: 18px; scroll-margin-top: 150px; }
.legal-section h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.legal-section h2 .ln { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.legal-section h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin: 20px 0 8px; }
.legal-section p, .legal-section li { color: var(--ink-2); font-size: .94rem; line-height: 1.75; text-align: justify; }
/* oryginalna punktacja prawna: 1. 2. 3. oraz podpunkty 1) 2) 3) */
.legal-section ol.legal-num { list-style: none; counter-reset: lnum; padding-left: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 9px; }
.legal-section ol.legal-num > li { position: relative; padding-left: 30px; counter-increment: lnum; }
.legal-section ol.legal-num > li::before { content: counter(lnum) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--brand); font-family: var(--font-display); min-width: 24px; }
.legal-section ol.legal-sub { list-style: none; counter-reset: lsub; padding-left: 0; margin: 9px 0 0; display: flex; flex-direction: column; gap: 7px; }
.legal-section ol.legal-sub > li { position: relative; padding-left: 30px; counter-increment: lsub; }
.legal-section ol.legal-sub > li::before { content: counter(lsub) ")"; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--muted); font-family: var(--font-display); min-width: 24px; }
.legal-section ul { padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 12px 0; }
.legal-section ul li { position: relative; padding-left: 19px; }
.legal-section ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.legal-section ul li b { color: var(--ink); }
.legal-section a { font-weight: 600; }
.legal-callout { display: flex; gap: 14px; background: var(--bg-soft); border-radius: var(--r-sm); padding: 16px 18px; margin: 16px 0; }
.legal-callout i { font-size: 1.4rem; color: var(--brand); flex-shrink: 0; }
.legal-callout b { font-family: var(--font-display); }
.rights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.right-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg-soft); }
.right-card i { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); color: var(--brand); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.right-card b { font-family: var(--font-display); font-size: .9rem; display: block; }
.right-card small { color: var(--muted); font-size: .8rem; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .88rem; }
.cookie-table th { text-align: left; font-family: var(--font-display); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.cookie-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.cookie-table tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .rights-grid { grid-template-columns: 1fr; }
  .legal-section { padding: 24px; }
}
