:root {
  --vgip-ink: #101117;
  --vgip-muted: #646a79;
  --vgip-soft: #f4f5f9;
  --vgip-card: #ffffff;
  --vgip-line: #dedfe7;
  --vgip-violet: #7b68d4;
  --vgip-violet-soft: #ece9fb;
  --vgip-blue: #87aee7;
  --vgip-green: #4c9375;
  --vgip-radius: 26px;
  --vgip-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.vgate-info-preview-active {
  background: var(--vgip-soft) !important;
  color: var(--vgip-ink);
  overflow-x: hidden;
}

body.vgate-info-preview-active #page-container,
body.vgate-info-preview-active .vgip-page {
  background: var(--vgip-soft) !important;
}

body.vgate-info-preview-active .vgip-page,
body.vgate-info-preview-active .vgip-page * {
  box-sizing: border-box;
}

.vgip-page {
  font-family: var(--vgip-font);
  font-size: 16px;
  line-height: 1.65;
}

.vgip-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.vgip-preview-note {
  position: relative;
  z-index: 4;
  color: #d9dbea;
  background: #11131b;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.vgip-preview-note .vgip-wrap {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 8px;
}

.vgip-preview-note span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  color: #fff;
  background: rgba(123, 104, 212, .24);
  border: 1px solid rgba(151, 133, 235, .38);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vgip-preview-note p {
  margin: 0 !important;
  font-size: 13px;
}

.vgip-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(118deg, rgba(10, 12, 19, .98), rgba(18, 20, 32, .94)),
    radial-gradient(circle at 82% 30%, rgba(123, 104, 212, .28), transparent 34%);
}

.vgip-hero::before,
.vgip-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(151, 133, 235, .15);
  border-radius: 50%;
}

.vgip-hero::before {
  width: 420px;
  height: 420px;
  right: -100px;
  top: -210px;
}

.vgip-hero::after {
  width: 600px;
  height: 600px;
  right: -130px;
  top: -300px;
}

.vgip-hero__glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to right, #000, transparent 76%);
}

.vgip-hero__inner {
  position: relative;
  z-index: 1;
  padding: 58px 0 62px;
}

.vgip-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  color: #9da2b2;
  font-size: 12px;
}

.vgip-breadcrumbs a {
  color: #d8dae5 !important;
  text-decoration: none !important;
}

.vgip-breadcrumbs strong {
  color: #fff;
  font-weight: 600;
}

.vgip-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px !important;
  color: #c0b5fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.vgip-eyebrow span {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--vgip-blue), var(--vgip-violet));
}

.vgip-hero h1 {
  max-width: 900px;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: var(--vgip-font) !important;
  font-size: clamp(44px, 6vw, 76px) !important;
  line-height: .98 !important;
  font-weight: 760 !important;
  letter-spacing: -.055em !important;
}

.vgip-page-nav {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--vgip-line);
  box-shadow: 0 8px 28px rgba(26, 28, 40, .04);
  backdrop-filter: blur(14px);
}

body.admin-bar .vgip-page-nav {
  top: 32px;
}

.vgip-page-nav__scroll {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 68px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.vgip-page-nav__scroll::-webkit-scrollbar {
  display: none;
}

.vgip-page-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  color: #3e4350 !important;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.vgip-page-nav a:hover,
.vgip-page-nav a:focus-visible {
  color: var(--vgip-ink) !important;
  background: #f3f2fa;
}

.vgip-page-nav a.is-active {
  color: #fff !important;
  background: #171923;
  border-color: #171923;
}

.vgip-document {
  padding: 72px 0 84px;
}

.vgip-document__grid {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.vgip-document__grid:not(.has-toc) {
  grid-template-columns: minmax(0, 960px);
  justify-content: center;
}

.vgip-toc__inner {
  position: sticky;
  top: 94px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--vgip-line);
  border-radius: 20px;
}

body.admin-bar .vgip-toc__inner {
  top: 126px;
}

.vgip-toc__inner > span {
  display: block;
  margin: 0 0 14px;
  padding: 0 8px;
  color: #777c89;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.vgip-toc nav {
  display: grid;
  gap: 2px;
}

.vgip-toc a {
  display: block;
  padding: 8px;
  color: #565b68 !important;
  border-left: 2px solid transparent;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none !important;
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}

.vgip-toc a[data-level="3"] {
  padding-left: 18px;
  font-size: 11px;
}

.vgip-toc a:hover,
.vgip-toc a:focus-visible,
.vgip-toc a.is-active {
  color: var(--vgip-ink) !important;
  border-left-color: var(--vgip-violet);
  padding-left: 12px;
}

.vgip-content-card {
  min-width: 0;
  overflow: hidden;
  background: var(--vgip-card);
  border: 1px solid var(--vgip-line);
  border-radius: var(--vgip-radius);
  box-shadow: 0 18px 55px rgba(31, 34, 48, .065);
}

.vgip-content-meta {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px clamp(24px, 5vw, 66px);
  color: #656b79;
  background: #fafafd;
  border-bottom: 1px solid var(--vgip-line);
}

.vgip-content-meta span {
  color: #363a46;
  font-size: 12px;
  font-weight: 750;
}

.vgip-content-meta small {
  font-size: 11px;
}

.vgip-richtext {
  max-width: 100%;
  padding: clamp(36px, 7vw, 76px) clamp(26px, 7vw, 82px) clamp(48px, 8vw, 94px);
  color: #303541;
  font-family: var(--vgip-font);
  font-size: 16px;
  line-height: 1.82;
}

/* Neutralize the former Divi layout without altering its content. */
.vgip-richtext .et-l,
.vgip-richtext .et-l--post,
.vgip-richtext .et_builder_inner_content,
.vgip-richtext .et_pb_section,
.vgip-richtext .et_pb_row,
.vgip-richtext .et_pb_column,
.vgip-richtext .et_pb_module,
.vgip-richtext .et_pb_text,
.vgip-richtext .et_pb_text_inner,
.vgip-richtext .entry-content {
  position: static !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.vgip-richtext .et_pb_row::after,
.vgip-richtext .et_pb_column::after {
  display: none !important;
}

.vgip-richtext .et_pb_text_align_center,
.vgip-richtext .et_pb_text_align_center-phone,
.vgip-richtext .et_pb_text_align_right {
  text-align: left !important;
}

.vgip-richtext h2,
.vgip-richtext h3,
.vgip-richtext h4,
.vgip-richtext h5 {
  max-width: 850px;
  color: var(--vgip-ink) !important;
  font-family: var(--vgip-font) !important;
  font-weight: 740 !important;
  letter-spacing: -.025em !important;
}

.vgip-richtext h2 {
  scroll-margin-top: 110px;
  margin: 58px 0 18px !important;
  padding: 0 !important;
  font-size: clamp(27px, 3.2vw, 38px) !important;
  line-height: 1.15 !important;
}

.vgip-richtext h2:first-child,
.vgip-richtext .et_pb_text_inner > h2:first-child {
  margin-top: 0 !important;
}

.vgip-richtext h3 {
  scroll-margin-top: 110px;
  margin: 42px 0 14px !important;
  padding: 0 !important;
  font-size: clamp(21px, 2.4vw, 27px) !important;
  line-height: 1.25 !important;
}

.vgip-richtext h4 {
  margin: 32px 0 10px !important;
  padding: 0 !important;
  font-size: 18px !important;
}

.vgip-richtext p,
.vgip-richtext li,
.vgip-richtext td,
.vgip-richtext th {
  color: #3f4552 !important;
  font-family: var(--vgip-font) !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.vgip-richtext p {
  max-width: 82ch;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.vgip-richtext p:empty,
.vgip-richtext p:has(> br:only-child) {
  display: none !important;
}

.vgip-richtext ul,
.vgip-richtext ol {
  max-width: 82ch;
  margin: 12px 0 24px 1.2em !important;
  padding: 0 0 0 1.35em !important;
  list-style-position: outside !important;
}

.vgip-richtext ul {
  list-style-type: disc !important;
}

.vgip-richtext ul ul {
  list-style-type: circle !important;
}

.vgip-richtext ul ul ul {
  list-style-type: square !important;
}

.vgip-richtext ol:not([type]),
.vgip-richtext ol[type="1"] {
  list-style-type: decimal !important;
}

.vgip-richtext ol[type="a"] {
  list-style-type: lower-alpha !important;
}

.vgip-richtext ol[type="A"] {
  list-style-type: upper-alpha !important;
}

.vgip-richtext ol[type="i"] {
  list-style-type: lower-roman !important;
}

.vgip-richtext ol[type="I"] {
  list-style-type: upper-roman !important;
}

.vgip-richtext li {
  display: list-item !important;
  margin: 0 0 8px !important;
  padding-left: 5px !important;
}

.vgip-richtext li::marker {
  color: #6551c8;
  font-weight: 720;
}

.vgip-richtext strong,
.vgip-richtext b {
  color: #191c24;
  font-weight: 720;
}

.vgip-richtext a:not(.et_pb_button) {
  color: #6551c8 !important;
  font-weight: 650;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
}

.vgip-richtext a:not(.et_pb_button):hover,
.vgip-richtext a:not(.et_pb_button):focus-visible {
  color: #3f2fa0 !important;
}

/* Prominent withdrawal actions - scoped to this one information page. */
.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 560px);
  min-height: 58px;
  margin: 5px 0 18px;
  padding: 15px 52px 15px 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31, 34, 48, .1);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action::after {
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-50%);
}

.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--primary,
.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--primary:visited {
  color: #fff !important;
  background: linear-gradient(135deg, #6f5dcc, #826fd7);
  border-color: #6f5dcc;
}

.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--primary::after {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--secondary,
.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--secondary:visited {
  color: #232630 !important;
  background: #fff;
  border-color: #cfd2dc;
  box-shadow: 0 8px 22px rgba(31, 34, 48, .06);
}

.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--secondary::after {
  color: #5f4fc0;
  background: var(--vgip-violet-soft);
}

.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action:hover,
.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(65, 54, 130, .16);
}

.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--primary:hover,
.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--primary:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, #6653c2, #7965d0);
  border-color: #6653c2;
}

.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--secondary:hover,
.vgate-info-preview-odstap-od-umowy-tutaj .vgip-richtext .vgip-legal-action--secondary:focus-visible {
  color: #171922 !important;
  background: #f8f7fd;
  border-color: #bdb5e6;
}

.vgip-richtext .et_pb_button_module_wrapper {
  display: block !important;
  width: 100% !important;
  margin: 18px 0 30px !important;
  padding: 0 !important;
  text-align: left !important;
}

.vgip-richtext .et_pb_button,
.vgip-richtext a.wp-block-button__link,
.vgip-richtext .wp-element-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 21px !important;
  color: #fff !important;
  background: #1c1e27 !important;
  border: 1px solid #1c1e27 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-family: var(--vgip-font) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease !important;
}

.vgip-richtext .et_pb_button::after,
.vgip-richtext .et_pb_button::before {
  display: none !important;
  content: none !important;
}

.vgip-richtext .et_pb_button:hover,
.vgip-richtext .et_pb_button:focus-visible,
.vgip-richtext a.wp-block-button__link:hover,
.vgip-richtext a.wp-block-button__link:focus-visible {
  color: #fff !important;
  background: #6856c5 !important;
  border-color: #6856c5 !important;
  transform: translateY(-1px);
}

.vgip-richtext blockquote {
  margin: 30px 0 !important;
  padding: 22px 24px !important;
  color: #333745 !important;
  background: #f7f6fc !important;
  border: 1px solid #e2def5 !important;
  border-left: 4px solid var(--vgip-violet) !important;
  border-radius: 0 14px 14px 0 !important;
}

.vgip-richtext img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 16px;
}

.vgip-table-scroll {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--vgip-line);
  border-radius: 14px;
}

.vgip-richtext table {
  width: 100% !important;
  min-width: 620px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
}

.vgip-richtext th,
.vgip-richtext td {
  padding: 13px 15px !important;
  border: 1px solid var(--vgip-line) !important;
  vertical-align: top;
}

.vgip-richtext th {
  color: #1d2029 !important;
  background: #f5f5f9 !important;
  font-weight: 720 !important;
}

.vgip-richtext hr {
  height: 1px !important;
  margin: 42px 0 !important;
  background: var(--vgip-line) !important;
  border: 0 !important;
}

.vgip-richtext input,
.vgip-richtext select,
.vgip-richtext textarea {
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #171922;
  background: #fff;
  border: 1px solid #cfd2dc;
  border-radius: 10px;
  font: inherit;
}

.vgip-richtext input[type="checkbox"],
.vgip-richtext input[type="radio"] {
  min-height: 0;
}

.vgip-richtext form {
  max-width: 760px;
}

.vgip-help {
  color: #fff;
  background: #11131b;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.vgip-help__inner {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 48px;
}

.vgip-help__inner div {
  display: grid;
  gap: 7px;
}

.vgip-help__inner div span {
  color: #aaa1df;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.vgip-help__inner div strong {
  max-width: 700px;
  color: #fff;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.vgip-help__inner > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 22px;
  color: #fff !important;
  background: var(--vgip-violet);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none !important;
}

.vgip-help__inner > a:hover,
.vgip-help__inner > a:focus-visible {
  background: #8b79dd;
}

@media (max-width: 980px) {
  .vgip-page-nav {
    top: 0;
  }

  body.admin-bar .vgip-page-nav {
    top: 32px;
  }

  .vgip-document__grid {
    grid-template-columns: 1fr;
  }

  .vgip-toc {
    display: none !important;
  }

  .vgip-help__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 782px) {
  body.admin-bar .vgip-page-nav {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .vgip-wrap {
    width: min(100% - 28px, 1180px);
  }

  .vgip-preview-note .vgip-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-block: 10px;
  }

  .vgip-preview-note p {
    font-size: 12px;
    line-height: 1.45;
  }

  .vgip-hero {
    min-height: 260px;
  }

  .vgip-hero__inner {
    padding: 36px 0 42px;
  }

  .vgip-breadcrumbs {
    margin-bottom: 24px;
  }

  .vgip-hero h1 {
    font-size: clamp(38px, 12vw, 54px) !important;
  }

  .vgip-page-nav__scroll {
    width: 100%;
    min-height: 58px;
  }

  .vgip-page-nav a {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 11px;
  }

  .vgip-document {
    padding: 34px 0 48px;
  }

  .vgip-content-card {
    border-radius: 20px;
  }

  .vgip-content-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    padding: 14px 20px;
  }

  .vgip-richtext {
    padding: 30px 20px 48px;
    font-size: 15px;
    line-height: 1.75;
  }

  .vgip-richtext h2 {
    margin-top: 44px !important;
  }

  .vgip-richtext h3 {
    margin-top: 34px !important;
  }

  .vgip-richtext .et_pb_button,
  .vgip-richtext a.wp-block-button__link,
  .vgip-richtext .wp-element-button {
    width: 100% !important;
  }

  .vgip-help__inner {
    min-height: 0;
    padding-block: 44px;
  }

  .vgip-help__inner > a {
    width: 100%;
  }
}

@media print {
  .vgip-preview-note,
  .vgip-page-nav,
  .vgip-toc,
  .vgip-help,
  body.vgate-info-preview-active header,
  body.vgate-info-preview-active footer {
    display: none !important;
  }

  body.vgate-info-preview-active,
  body.vgate-info-preview-active #page-container,
  .vgip-page {
    background: #fff !important;
  }

  .vgip-hero {
    min-height: 0;
    color: #000;
    background: #fff;
  }

  .vgip-hero h1 {
    color: #000 !important;
  }

  .vgip-document {
    padding: 20px 0;
  }

  .vgip-document__grid {
    display: block;
  }

  .vgip-content-card {
    border: 0;
    box-shadow: none;
  }

  .vgip-richtext {
    padding: 0;
  }
}
