:root {
  color: #f7fee7;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow: auto;
  background: #212121;
  -webkit-text-size-adjust: 100%;
}

body.legal-contact-document {
  position: relative;
}

body.legal-contact-document::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/ui/froppy-contact-grain.png");
  background-repeat: repeat;
  background-size: 96px 96px;
  opacity: 0.12;
}

.legal-page {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(720px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 32px 0 44px;
  color: #d7e0e2;
}

.legal-page--contact {
  position: relative;
  z-index: 1;
  align-content: start;
  gap: clamp(10px, 1.5vh, 18px);
  width: min(980px, calc(100vw - 28px));
  min-height: 100vh;
  padding: clamp(6px, 1.4vh, 12px) 0 16px;
}

.legal-page h1 {
  margin: 0 0 4px;
  color: #9cff62;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}

.legal-frog {
  width: min(420px, 86vw);
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.legal-frog--sphere {
  width: min(560px, 90vw);
}

.legal-contact-banner {
  display: block;
  width: min(980px, 100%, calc((100vh - 270px) * 2));
  height: auto;
}

.legal-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 20px);
  margin: 0 0 2px;
}

.legal-social {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: clamp(88px, 12vw, 150px);
  height: clamp(88px, 12vw, 150px);
  color: #ffffff;
  border-radius: clamp(20px, 2.8vw, 34px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  filter: brightness(0.82) saturate(0.94);
  transition:
    transform 140ms ease,
    filter 140ms ease;
}

.legal-social:hover {
  transform: translateY(-1px);
  filter: brightness(1) saturate(1);
}

.legal-social--youtube {
  background: #f7f7f7;
  color: #ff0808;
}

.legal-social--x-twitter {
  background: linear-gradient(135deg, #050505 0 49.4%, rgba(255, 255, 255, 0.72) 49.6% 50.4%, #4da9e9 50.6% 100%);
}

.legal-social--facebook {
  background: transparent;
  color: #ffffff;
}

.legal-social--tiktok {
  background: #050505;
}

.legal-social--instagram {
  background: transparent;
}

.legal-social svg {
  position: relative;
  z-index: 1;
  width: 58%;
  height: 58%;
}

.legal-social-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.legal-social-image--facebook {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.12));
}

.legal-social--youtube svg {
  width: 68%;
  height: 68%;
}

.legal-social--youtube svg rect {
  fill: #ff0808;
}

.legal-social--youtube svg path {
  fill: #ffffff;
}

.legal-x-twitter-mark {
  position: absolute;
  width: 64%;
  height: 64%;
}

.legal-x-twitter-mark--x {
  top: 9%;
  left: -20%;
  width: 60%;
  height: 60%;
  color: #ffffff;
}

.legal-x-twitter-mark--twitter {
  right: -20%;
  bottom: 9%;
  width: 60%;
  height: 60%;
  color: #ffffff;
}

.legal-social svg path {
  fill: currentColor;
}

.legal-social--youtube svg path {
  fill: #ffffff;
}

.legal-body {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 660px;
  justify-items: center;
}

.legal-body p {
  margin: 0;
  color: #72d9ff;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.legal-body a {
  color: #72d9ff;
  text-decoration: none;
}

.legal-body a:hover {
  color: #e9f57c;
}

.legal-body--contact {
  align-self: end;
  margin-top: clamp(10px, 2.2vh, 24px);
}

.legal-body--contact p {
  color: #f4f4f4;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: 0;
}

.legal-body--contact a {
  color: #67d4ff;
}

.legal-body--contact a:hover {
  color: #e9f57c;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 720px) {
  .legal-page {
    width: min(100% - 24px, 560px);
    gap: 14px;
    padding: 14px 0 32px;
  }

  .legal-page--contact {
    width: min(100% - 20px, 440px);
    gap: 24px;
    padding: 22px 0 34px;
  }

  .legal-frog {
    width: min(320px, 82vw);
  }

  .legal-frog--sphere {
    width: min(420px, 90vw);
  }

  .legal-social {
    width: clamp(78px, 24vw, 92px);
    height: clamp(78px, 24vw, 92px);
    border-radius: 20px;
  }

  .legal-body p {
    font-size: 14px;
  }
}
