:root {
  --purple-950: #1a0630;
  --purple-800: #3b1168;
  --gold-700: #9b7415;
  --ink: #1d1726;
  --muted: #61586d;
  --paper: #fffaf0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-page {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal-page h1,
.legal-page h2 {
  margin: 0;
  color: var(--purple-950);
  font-family: Merriweather, Georgia, serif;
  line-height: 1.15;
}

.legal-page h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 1rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.legal-page a {
  color: var(--purple-800);
  font-weight: 700;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--purple-800);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

/* Techephi footer kit — MailXTract canonical */
.te-footer {
  min-height: 1in;
  background: var(--white);
  border-top: 1px solid #e5e7eb;
}

.te-footer-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1in;
}

.te-footer-legal {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
}

.te-footer-legal a {
  color: #4b5563;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.te-footer-legal a:hover,
.te-footer-legal a:focus-visible {
  color: var(--gold-700);
}

.te-footer-emblem {
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 180ms ease;
}

.te-footer-emblem:hover,
.te-footer-emblem:focus-visible {
  opacity: 1;
}

.te-footer-emblem img {
  display: block;
  width: auto;
  height: 7.26rem;
  object-fit: contain;
}

.emblem-glisten {
  position: relative;
  overflow: hidden;
}

.emblem-glisten::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 220, 100, 0.4) 45%,
    rgba(255, 235, 150, 0.55) 50%,
    rgba(255, 220, 100, 0.4) 55%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: emblem-shine 10s ease-in-out infinite;
  pointer-events: none;
  mask-image: radial-gradient(circle, black 0%, black 48%, transparent 50%);
  -webkit-mask-image: radial-gradient(circle, black 0%, black 48%, transparent 50%);
}

@keyframes emblem-shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emblem-glisten::after {
    animation: none;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .te-footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .te-footer-legal {
    justify-content: center;
  }
}
