.cfe-footer,
.cfe-footer * {
  box-sizing: border-box;
}

.cfe-footer {
  --cfe-purple: #7b24ff;
  --cfe-decoration-image: none;
  --cfe-surface-top: clamp(58px, 4.102vw, 84px);
  --cfe-notch-mid: clamp(86px, 6.006vw, 123px);
  --cfe-notch-bottom: clamp(112px, 7.813vw, 160px);
  --cfe-surface-clip: polygon(0 var(--cfe-surface-top), 37.5% var(--cfe-surface-top), 38.2% calc(var(--cfe-surface-top) + 3px), 39.2% calc(var(--cfe-surface-top) + 20px), 40.7% var(--cfe-notch-mid), 42.2% calc(var(--cfe-notch-bottom) - 8px), 43% var(--cfe-notch-bottom), 57% var(--cfe-notch-bottom), 57.8% calc(var(--cfe-notch-bottom) - 8px), 59.3% var(--cfe-notch-mid), 60.8% calc(var(--cfe-surface-top) + 20px), 61.8% calc(var(--cfe-surface-top) + 3px), 62.5% var(--cfe-surface-top), 100% var(--cfe-surface-top), 100% 100%, 0 100%);
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(461px, 30.762vw, 630px);
  overflow: hidden;
  direction: rtl;
  color: #242226;
  font-family: inherit;
}

.cfe-footer-surface {
  position: absolute;
  z-index: -4;
  inset: 0;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  background: #fff;
  box-shadow: none;
  clip-path: var(--cfe-surface-clip);
}

.cfe-top-glow {
  display: none;
  background: none;
  box-shadow: none;
  filter: none;
}

.cfe-pattern {
  position: absolute;
  z-index: -2;
  inset: 0;
  color: #edf0f4;
  opacity: .22;
  pointer-events: none;
  clip-path: var(--cfe-surface-clip);
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23000' stroke-width='3' opacity='.72'%3E%3Cpath d='M21 1h15c3 0 5 2 5 5v9c0 4-3 7-7 7h-8c-4 0-7 3-7 7v8c0 4-3 7-7 7H1'/%3E%3Cpath d='M63 1H48c-3 0-5 2-5 5v9c0 4 3 7 7 7h8c4 0 7 3 7 7v8c0 4 3 7 7 7h11'/%3E%3Cpath d='M21 83h15c3 0 5-2 5-5v-9c0-4-3-7-7-7h-8c-4 0-7-3-7-7v-8c0-4-3-7-7-7H1'/%3E%3Cpath d='M63 83H48c-3 0-5-2-5-5v-9c0-4 3-7 7-7h8c4 0 7-3 7-7v-8c0-4 3-7 7-7h11'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23000' stroke-width='3' opacity='.72'%3E%3Cpath d='M21 1h15c3 0 5 2 5 5v9c0 4-3 7-7 7h-8c-4 0-7 3-7 7v8c0 4-3 7-7 7H1'/%3E%3Cpath d='M63 1H48c-3 0-5 2-5 5v9c0 4 3 7 7 7h8c4 0 7 3 7 7v8c0 4 3 7 7 7h11'/%3E%3Cpath d='M21 83h15c3 0 5-2 5-5v-9c0-4-3-7-7-7h-8c-4 0-7-3-7-7v-8c0-4-3-7-7-7H1'/%3E%3Cpath d='M63 83H48c-3 0-5-2-5-5v-9c0-4 3-7 7-7h8c4 0 7-3 7-7v-8c0-4 3-7 7-7h11'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-position: 1px 3px;
  mask-position: 1px 3px;
  -webkit-mask-size: clamp(83px, 5.371vw, 110px) clamp(83px, 5.371vw, 110px);
  mask-size: clamp(83px, 5.371vw, 110px) clamp(83px, 5.371vw, 110px);
}

.cfe-pattern.has-custom-pattern {
  background-color: transparent;
  background-repeat: repeat;
  background-size: clamp(83px, 5.371vw, 110px) clamp(83px, 5.371vw, 110px);
  -webkit-mask-image: none;
  mask-image: none;
}

.cfe-logo-wrap {
  position: absolute;
  z-index: 3;
  top: clamp(38px, 2.637vw, 54px);
  left: 50%;
  width: clamp(130px, 9.033vw, 185px);
  height: clamp(58px, 4.004vw, 82px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfe-logo-reference {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cfe-logo-reference::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/footer-logo.png') center / 100% 100% no-repeat;
}

.cfe-logo-image {
  display: block;
  width: 160px;
  max-width: 100%;
  max-height: 104px;
  object-fit: contain;
}

.cfe-social-row {
  position: absolute;
  z-index: 3;
  top: clamp(160px, 11.182vw, 229px);
  left: 50%;
  width: clamp(553px, 38.574vw, 790px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 9px;
  direction: ltr;
}

.cfe-social-line {
  width: 100%;
  height: 1px;
  background: var(--cfe-purple);
  opacity: .95;
}

.cfe-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, .684vw, 14px);
}

.cfe-social-link {
  position: relative;
  width: clamp(39px, 2.637vw, 54px);
  height: clamp(39px, 2.637vw, 54px);
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #f7f6fb;
  clip-path: polygon(50% 0, 62% 10%, 78% 6%, 84% 22%, 100% 29%, 94% 45%, 100% 59%, 84% 68%, 79% 84%, 62% 81%, 50% 100%, 38% 82%, 21% 86%, 16% 69%, 0 60%, 6% 45%, 0 29%, 16% 22%, 21% 6%, 38% 10%);
  transition: transform .25s ease, filter .25s ease;
}

a.cfe-social-link:hover {
  transform: translateY(-3px) rotate(4deg);
  filter: none;
}

.cfe-social-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(15px, .879vw, 18px);
  line-height: 1;
}

.cfe-social-icon svg {
  width: 1em;
  height: 1em;
}

.cfe-columns {
  position: absolute;
  z-index: 2;
  top: clamp(243px, 15.479vw, 317px);
  left: 50%;
  width: clamp(730px, 50.293vw, 1030px);
  height: clamp(178px, 12.354vw, 253px);
  max-width: calc(100% - 54px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1.75fr 1.24fr 1.55fr 1.05fr;
  column-gap: clamp(22px, 1.709vw, 35px);
  direction: rtl;
  text-align: right;
}

.cfe-column {
  position: relative;
  min-width: 0;
  padding-right: clamp(16px, 2.051vw, 42px);
}

.cfe-column-guide {
  --cfe-guide-size: clamp(10px, calc(3.56vw - 40.9px), 32px);
  position: absolute;
  top: 3px;
  right: 0;
  bottom: 0;
  width: var(--cfe-guide-size);
  color: var(--cfe-purple);
  opacity: .14;
  pointer-events: none;
}

.cfe-column-guide::before {
  content: "";
  position: absolute;
  top: clamp(16px, 1.367vw, 28px);
  right: 50%;
  bottom: 0;
  width: 1px;
  background: currentColor;
  transform: translateX(50%);
}

.cfe-column-guide i {
  position: absolute;
  top: -2px;
  right: 0;
  width: var(--cfe-guide-size);
  height: var(--cfe-guide-size);
  background: currentColor;
  transform: rotate(45deg);
}

.cfe-column-guide b,
.cfe-column-guide em,
.cfe-column-guide::after {
  content: "";
  position: absolute;
  right: 50%;
  width: clamp(4px, .244vw, 5px);
  height: clamp(4px, .244vw, 5px);
  border-radius: 50%;
  background: currentColor;
  transform: translateX(50%);
}

.cfe-column-guide b { top: 51%; }
.cfe-column-guide em { top: 76%; }
.cfe-column-guide::after { bottom: -1px; }

.cfe-column-title {
  margin: 0 0 clamp(30px, 2.051vw, 42px);
  padding: 0;
  color: #242226;
  font-family: inherit;
  font-size: clamp(15px, .879vw, 18px);
  font-weight: 700;
  line-height: 1.75;
  white-space: nowrap;
}

.cfe-column-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(17px, 1.07vw, 22px);
}

.cfe-column-item {
  margin: 0;
  padding: 0;
  color: #838086;
  font-family: inherit;
  font-size: clamp(10.5px, .635vw, 13px);
  font-weight: 400;
  line-height: 1.85;
}

.cfe-column-item a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.cfe-column-item a:hover {
  color: var(--cfe-purple);
}

.cfe-column.is-tweets .cfe-column-list {
  gap: clamp(11px, 1.27vw, 26px);
}

.cfe-column.is-tweets .cfe-column-item {
  width: clamp(180px, 10.99vw, 225px);
  max-width: none;
}

.cfe-left-decoration {
  position: absolute;
  z-index: 1;
  top: var(--cfe-surface-top);
  bottom: 0;
  left: 0;
  width: clamp(175px, 12.207vw, 250px);
  height: auto;
  background-image: url('../images/footer-left-clean.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 100% auto;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 96%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 96%, transparent 100%);
  pointer-events: none;
}

.cfe-left-decoration.is-custom {
  background-image: var(--cfe-decoration-image);
  background-position: left bottom;
  background-size: contain;
  -webkit-mask-image: none;
  mask-image: none;
}

.cfe-credit {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: 50%;
  width: clamp(344px, 30.664vw, 628px);
  min-height: clamp(36px, 2.295vw, 47px);
  max-width: calc(100% - 40px);
  transform: translateX(-50%);
  padding: 7px 18px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 42px 42px 0 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
  color: #858287;
  font-family: inherit;
  font-size: clamp(12px, .781vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.cfe-credit-icon {
  display: inline-flex;
  opacity: .7;
  font-size: .9em;
}

.cfe-credit-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

@media (max-width: 899px) {
  .cfe-footer {
    --cfe-surface-clip: polygon(0 47px, 24% 47px, 26% 49px, 29% 64px, 32.5% 77px, 67.5% 77px, 71% 64px, 74% 49px, 76% 47px, 100% 47px, 100% 100%, 0 100%);
    min-height: 655px;
  }

  .cfe-footer-surface {
    inset: 0;
    border-radius: 0 0 12px 12px;
    clip-path: var(--cfe-surface-clip);
  }

  .cfe-top-glow {
    top: 0;
    right: 0;
    left: 0;
    height: 80px;
    clip-path: polygon(0 0, 100% 0, 100% 7px, 82% 7px, 73% 21px, 66% 47px, 34% 47px, 27% 21px, 18% 7px, 0 7px);
  }

  .cfe-pattern {
    inset: 0;
    opacity: .22;
    clip-path: var(--cfe-surface-clip);
  }

  .cfe-logo-wrap,
  .cfe-logo-reference {
    width: 120px;
    height: 45px;
  }

  .cfe-logo-wrap {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .cfe-logo-reference {
    top: 0;
  }

  .cfe-logo-reference::before {
    inset: 0;
    background: url('../images/footer-logo.png') center / contain no-repeat;
  }

  .cfe-logo-image {
    max-height: 72px;
  }

  .cfe-social-row {
    top: 112px;
    left: 50%;
    width: min(100%, 553px);
    transform: translateX(-50%);
    grid-template-columns: minmax(38px, 1fr) auto minmax(38px, 1fr);
    gap: 8px;
  }

  .cfe-social-icons {
    gap: 11px;
  }

  .cfe-social-link {
    width: 39px;
    height: 39px;
  }

  .cfe-columns {
    top: 170px;
    right: auto;
    left: calc(50% - 12.5px);
    width: min(275px, calc(100% - 85px));
    height: 409px;
    max-width: none;
    transform: translateX(-50%);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 130px 146px 133px;
    column-gap: 18px;
    row-gap: 0;
  }

  .cfe-column {
    padding-right: 24px;
    padding-top: 7px;
  }

  .cfe-column--1 {
    grid-column: 1;
    grid-row: 3;
    padding-top: 4px;
  }

  .cfe-column--2 {
    grid-column: 1;
    grid-row: 2;
  }

  .cfe-column--3 {
    grid-column: 1;
    grid-row: 1;
    padding-top: 18px;
  }

  .cfe-column--4 {
    grid-column: 2;
    grid-row: 2;
  }

  .cfe-column-guide {
    top: 0;
    right: 0;
    bottom: 0;
    width: 9px;
    opacity: .12;
  }

  .cfe-column-guide::before {
    top: 19px;
    right: 4px;
    transform: none;
  }

  .cfe-column-guide i {
    top: 4px;
    right: -10px;
    width: 28px;
    height: 28px;
  }

  .cfe-column-guide b,
  .cfe-column-guide em,
  .cfe-column-guide::after {
    right: 2px;
    width: 5px;
    height: 5px;
    transform: none;
  }

  .cfe-column-title {
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.75;
    white-space: nowrap;
  }

  .cfe-column-list {
    gap: 11px;
  }

  .cfe-column-item {
    font-size: 10px;
    line-height: 1.8;
  }

  .cfe-column.is-tweets .cfe-column-list {
    gap: 15px;
  }

  .cfe-column.is-tweets .cfe-column-title {
    margin-bottom: 25px;
  }

  .cfe-column.is-tweets .cfe-column-item {
    width: 225px;
  }

  .cfe-left-decoration {
    top: 158px;
    bottom: auto;
    left: 0;
    width: 132px;
    height: 150px;
    background-image: url('../images/footer-mobile-decoration.png');
    background-position: left top;
    background-size: 132px 150px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cfe-left-decoration.is-custom {
    top: 165px;
    left: 14px;
    width: 130px;
    background-image: var(--cfe-decoration-image);
    background-position: center;
    background-size: contain;
  }

  .cfe-credit {
    bottom: 0;
    width: 310px;
    min-height: 41px;
    padding: 7px 12px 5px;
    border-radius: 42px 42px 0 0;
    font-size: 11px;
  }
}

@media (min-width: 601px) and (max-width: 899px) {
  .cfe-footer {
    --cfe-surface-clip: polygon(0 36px, 37.2% 36px, 37.9% 39px, 39.3% 60px, 40.5% 70px, 41.7% 90px, 42.5% 95px, 57.5% 95px, 58.3% 90px, 59.5% 70px, 60.7% 60px, 62.1% 39px, 62.8% 36px, 100% 36px, 100% 100%, 0 100%);
  }

  .cfe-left-decoration:not(.is-custom) {
    width: 132px;
  }
}

@media (max-width: 340px) {
  .cfe-columns {
    left: calc(50% - 7px);
    width: calc(100% - 62px);
    column-gap: 12px;
  }

  .cfe-column {
    padding-right: 20px;
  }

  .cfe-social-icons {
    gap: 4px;
  }

  .cfe-social-link {
    width: 36px;
    height: 36px;
  }

  .cfe-credit {
    width: calc(100% - 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfe-social-link,
  .cfe-column-item a {
    transition: none;
  }
}
