.tek-footer {
  --footer-paper: #fff6e5;
  --footer-text: #efe8f5;
  --footer-gold: #ffdc93;
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 5vw, 4.6rem) 0 clamp(.9rem, 2vw, 1.4rem);
  overflow: hidden;
  border-radius: 54% 44% 0 0 / clamp(1.1rem, 3.6vw, 3.1rem) clamp(.85rem, 2.8vw, 2.35rem) 0 0;
  color: var(--footer-text);
  background: #29204f;
}

.tek-footer-lines {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 89% 14%, #d9ad67 0 2px, transparent 3px),
    radial-gradient(circle at 94% 25%, #a98cc1 0 2px, transparent 3px),
    radial-gradient(circle at 83% 38%, #a98cc1 0 1px, transparent 2px);
}

.tek-footer-lines::before,
.tek-footer-lines::after {
  position: absolute;
  top: 7%;
  right: -4%;
  width: clamp(10rem, 28%, 30rem);
  height: 36%;
  border-block-start: 1px solid #584a79;
  border-radius: 50%;
  transform: rotate(-17deg);
  content: '';
}

.tek-footer-lines::after {
  top: 13%;
  right: -9%;
  transform: rotate(-24deg);
}

.tek-footer-grid {
  display: grid;
  grid-template-columns: 1fr .9fr 1.05fr;
  align-items: start;
  gap: clamp(1.1rem, 4.8vw, 4.6rem);
}

.tek-footer-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}

.tek-footer-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 112px;
  padding: .6rem .7rem;
  border-radius: .75rem 1.05rem .85rem .55rem;
  background: var(--footer-paper);
  box-shadow: 3px 4px 0 #a58ab9;
  transform: rotate(-3deg);
}

.tek-footer-logo img { width: 82px; height: auto; }
.tek-footer-identity p { max-width: 16ch; font-weight: 700; line-height: 1.35; }

.tek-footer-group h2 {
  margin: 0 0 .45rem;
  color: var(--footer-gold);
  font: 400 clamp(1.05rem, 1.75vw, 1.38rem)/1.2 var(--heading);
  letter-spacing: -.025em;
}

.tek-footer address {
  max-width: 34ch;
  font-style: normal;
  overflow-wrap: anywhere;
}

.tek-footer-group a,
.tek-footer-legal a,
.tek-footer-legal button {
  display: flex;
  align-items: center;
  gap: .28em;
  width: fit-content;
  min-height: 36px;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #a88dbf;
  text-underline-offset: .24em;
}

.tek-footer-group a:hover,
.tek-footer-legal a:hover,
.tek-footer-legal button:hover {
  color: var(--footer-gold);
  text-decoration-color: currentColor;
}

.tek-footer :is(a, button):focus-visible { outline-color: var(--footer-gold); }

.tek-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem clamp(.8rem, 2.5vw, 2rem);
  margin-top: clamp(1.3rem, 3.5vw, 2.8rem);
  padding-top: .65rem;
  border-top: 1px solid #675881;
  font-size: .84rem;
}

.tek-footer-legal button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 720px) {
  .tek-footer-grid { grid-template-columns: .82fr 1.18fr; }
  .tek-footer-identity { grid-column: 1 / -1; margin-bottom: .25rem; }
  .tek-footer-logo { width: 88px; }
  .tek-footer-logo img { width: 66px; }
  .tek-footer address { font-size: .94rem; }
  .tek-footer-group a, .tek-footer-legal a, .tek-footer-legal button { min-height: 44px; }
  .tek-footer-legal { row-gap: 0; }
}

@media (max-width: 360px) {
  .tek-footer-grid { grid-template-columns: minmax(0, 1fr); }
}
