/* Legal pages — Regulamin / Polityka prywatności */

body.is-legal {
  --lg-ink: #06122f;
  --lg-soft: #3d4a6b;
  --lg-muted: #6b7590;
  --lg-line: rgba(6, 18, 47, 0.08);
  --lg-blue: #2448c6;
  --lg-blue-soft: #eef2ff;
  --lg-paper: #f6f8fc;
  --lg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(90% 60% at 100% -10%, rgba(36, 72, 198, 0.1), transparent 55%),
    radial-gradient(70% 50% at 0% 20%, rgba(36, 72, 198, 0.05), transparent 50%),
    var(--lg-paper);
}

body.is-legal .lg-page {
  padding-bottom: 4rem;
}

/* Hero */
body.is-legal .lg-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  margin: 0 0 2rem;
}
body.is-legal .lg-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 100% at 10% 0%, rgba(61, 95, 217, 0.45), transparent 55%),
    linear-gradient(145deg, #06122f 0%, #12308a 52%, #2448c6 100%);
}
body.is-legal .lg-hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.4rem 1.25rem 2.2rem;
}
body.is-legal .lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c5d2ff;
}
body.is-legal .lg-eyebrow .shop-icon {
  width: 14px;
  height: 14px;
}
body.is-legal .lg-hero h1 {
  margin: 0 0 0.75rem;
  max-width: 18ch;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
body.is-legal .lg-hero-lead {
  margin: 0 0 1.25rem;
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
body.is-legal .lg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
body.is-legal .lg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
body.is-legal .lg-chip .shop-icon {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* Shell + TOC */
body.is-legal .lg-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  body.is-legal .lg-shell.has-toc {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }
}

body.is-legal .lg-toc {
  position: sticky;
  top: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--lg-line);
  box-shadow: 0 12px 36px rgba(6, 18, 47, 0.05);
}
body.is-legal .lg-toc-title {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lg-blue);
}
body.is-legal .lg-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: min(70vh, 560px);
  overflow: auto;
}
body.is-legal .lg-toc a {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--lg-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background 0.15s, color 0.15s;
}
body.is-legal .lg-toc a:hover,
body.is-legal .lg-toc a.is-active {
  background: var(--lg-blue-soft);
  color: var(--lg-blue);
}
body.is-legal .lg-toc em {
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--lg-blue);
  opacity: 0.75;
}
@media (max-width: 959px) {
  body.is-legal .lg-toc {
    position: static;
  }
  body.is-legal .lg-toc nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: none;
  }
}
@media (max-width: 560px) {
  body.is-legal .lg-toc nav {
    grid-template-columns: 1fr;
  }
}

/* Document */
body.is-legal .lg-doc {
  background: #fff;
  border: 1px solid var(--lg-line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(6, 18, 47, 0.06);
  overflow: hidden;
}
body.is-legal .lg-doc-intro {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--lg-line);
  background:
    linear-gradient(180deg, rgba(36, 72, 198, 0.04), transparent 80%);
}
body.is-legal .lg-doc-intro p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--lg-soft);
  max-width: 62ch;
}

body.is-legal .lg-section {
  padding: 1.65rem 1.5rem 1.7rem;
  border-bottom: 1px solid var(--lg-line);
  scroll-margin-top: 1.25rem;
}
body.is-legal .lg-section:last-of-type {
  border-bottom: 0;
}
body.is-legal .lg-section-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0 0 1rem;
}
body.is-legal .lg-mark {
  flex: 0 0 auto;
  min-width: 2.6rem;
  height: 2.2rem;
  padding: 0 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--lg-blue-soft);
  color: var(--lg-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
body.is-legal .lg-section h2 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
  color: var(--lg-ink);
  line-height: 1.25;
}

body.is-legal .lg-body {
  color: var(--lg-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}
body.is-legal .lg-body > p {
  margin: 0 0 0.9rem;
}
body.is-legal .lg-body > p:last-child {
  margin-bottom: 0;
}
body.is-legal .lg-body a {
  color: var(--lg-blue);
  font-weight: 700;
  text-decoration: none;
}
body.is-legal .lg-body a:hover {
  text-decoration: underline;
}

body.is-legal .lg-ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lg;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
body.is-legal .lg-ol > li {
  counter-increment: lg;
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.65rem;
  align-items: start;
}
body.is-legal .lg-ol > li::before {
  content: counter(lg);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--lg-blue);
  background: var(--lg-blue-soft);
  margin-top: 0.12rem;
}
body.is-legal .lg-ol > li > div,
body.is-legal .lg-ol > li > span {
  min-width: 0;
}
body.is-legal .lg-ol .lg-sub {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
body.is-legal .lg-ol .lg-sub li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.92rem;
  color: var(--lg-soft);
}
body.is-legal .lg-ol .lg-sub li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lg-blue);
  opacity: 0.45;
}

body.is-legal .lg-note {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--lg-blue-soft);
  color: var(--lg-ink);
  font-size: 0.9rem;
  line-height: 1.5;
}
body.is-legal .lg-note strong {
  color: var(--lg-blue);
}

/* Company card / footer of doc */
body.is-legal .lg-closing {
  padding: 1.4rem 1.5rem 1.6rem;
  background: linear-gradient(160deg, #06122f 0%, #12308a 55%, #2448c6 100%);
  color: #fff;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  body.is-legal .lg-closing {
    grid-template-columns: 1.2fr auto;
    align-items: center;
  }
}
body.is-legal .lg-closing h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
body.is-legal .lg-closing p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
body.is-legal .lg-closing .shop-btn {
  justify-self: start;
}
body.is-legal .lg-date {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

body.is-legal .lg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
body.is-legal .lg-actions .shop-btn-ghost {
  background: #fff;
  border: 1px solid var(--lg-line);
  color: var(--lg-ink);
}
body.is-legal .lg-actions .shop-btn-ghost:hover {
  border-color: rgba(36, 72, 198, 0.25);
  color: var(--lg-blue);
}

@media (prefers-reduced-motion: reduce) {
  body.is-legal * {
    scroll-behavior: auto !important;
  }
}
