@font-face {
  font-family: "Gooper";
  src: url("assets/fonts/Gooper-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gooper";
  src: url("assets/fonts/Gooper-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Gooper";
  src: url("assets/fonts/Gooper-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --legal-teal-light: #80dede;
  --legal-teal: #00bebe;
  --legal-ink: #050609;
  --legal-text: #252552;
  --legal-purple: #9e76d3;
  --legal-footer: #252552;
  --legal-white: #ffffff;
  --legal-display: "Gooper", Georgia, serif;
  --legal-body: "Poppins", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.legal-page {
  margin: 0;
  background: var(--legal-white);
  color: var(--legal-ink);
  font-family: var(--legal-body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

.legal-page img {
  display: block;
  max-width: 100%;
}

.legal-page a {
  color: var(--legal-purple);
  text-underline-offset: 3px;
}

.legal-skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--legal-white);
  color: var(--legal-ink) !important;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.legal-skip-link:focus {
  transform: translateY(0);
}

.legal-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-radius: 0 0 180px 180px;
  background: linear-gradient(160deg, var(--legal-teal-light), var(--legal-teal) 62%);
  isolation: isolate;
}

.legal-hero::before {
  position: absolute;
  z-index: -1;
  inset: -30px;
  background: url("assets/pattern.png") center / 240px repeat;
  content: "";
  opacity: 0.2;
  transform: rotate(-3deg) scale(1.08);
}

.legal-hero__inner {
  display: flex;
  width: min(1200px, calc(100% - 48px));
  min-height: 660px;
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 0;
  text-align: center;
}

.legal-hero__logo {
  width: min(235px, 58vw);
  margin-bottom: 20px;
}

.legal-hero h1 {
  max-width: 980px;
  margin: 0 0 22px;
  color: var(--legal-ink);
  font-family: var(--legal-display);
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  font-weight: 900;
  line-height: 1.05;
}

.legal-hero__intro {
  max-width: 920px;
  margin: 0 0 26px;
  color: var(--legal-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.legal-store-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 30px;
  justify-content: center;
}

.legal-store-buttons a {
  display: block;
  width: 225px;
  height: 75px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--legal-white);
  box-shadow: 0 4px 14px rgb(5 6 9 / 12%);
}

.legal-store-buttons img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legal-hero__people {
  position: absolute;
  z-index: 1;
  bottom: -8px;
  left: 50%;
  width: min(710px, 62vw);
  transform: translateX(-50%);
}

.legal-main {
  padding: 105px 24px 120px;
}

.legal-document {
  width: min(1040px, 100%);
  margin-inline: auto;
  color: var(--legal-ink);
}

.legal-document .e-con-inner,
.legal-document .elementor,
.legal-document .elementor-element,
.legal-document .elementor-widget-container {
  max-width: none;
}

.legal-document .elementor-widget-spacer {
  display: none;
}

.legal-document .elementor-heading-title,
.legal-document h2 {
  margin: 0 0 34px;
  color: var(--legal-ink);
  font-family: var(--legal-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
}

.legal-document h3,
.legal-document h4 {
  margin: 2.2em 0 0.75em;
  font-family: var(--legal-display);
  line-height: 1.2;
}

.legal-document p,
.legal-document li,
.legal-document td,
.legal-document th {
  font-family: var(--legal-body);
  font-size: 18px;
  line-height: 1.6;
}

.legal-document p {
  margin: 0 0 1.35em;
}

.legal-document strong {
  font-weight: 700;
}

.legal-document ul,
.legal-document ol {
  padding-left: 1.4em;
}

.legal-document table {
  display: block;
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

.legal-document th,
.legal-document td {
  min-width: 220px;
  padding: 14px;
  border: 1px solid #d2d2db;
  vertical-align: top;
  text-align: left;
}

.legal-document th {
  background: #f6f7fb;
}

.legal-footer {
  min-height: 220px;
  border-radius: 100px 100px 0 0;
  background: var(--legal-footer);
}

.legal-footer__inner {
  display: flex;
  width: min(1200px, calc(100% - 48px));
  min-height: 220px;
  margin-inline: auto;
  align-items: center;
}

.legal-footer img {
  width: 190px;
  height: auto;
  padding: 16px;
  border-radius: 24px;
  background: var(--legal-white);
  object-fit: contain;
}

@media (max-width: 760px) {
  body.legal-page {
    font-size: 16px;
  }

  .legal-hero {
    min-height: 600px;
    border-radius: 0 0 80px 80px;
  }

  .legal-hero__inner {
    width: min(100% - 30px, 520px);
    min-height: 600px;
    padding-top: 28px;
  }

  .legal-hero__logo {
    width: 165px;
    margin-bottom: 18px;
  }

  .legal-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .legal-hero__intro {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.45;
  }

  .legal-store-buttons {
    width: 100%;
    gap: 12px;
  }

  .legal-store-buttons a {
    width: calc(50% - 6px);
    height: auto;
    aspect-ratio: 3 / 1;
  }

  .legal-hero__people {
    width: min(390px, 92vw);
  }

  .legal-main {
    padding: 80px 24px 90px;
  }

  .legal-document .elementor-heading-title,
  .legal-document h2 {
    margin-bottom: 26px;
    font-size: 2.35rem;
  }

  .legal-document p,
  .legal-document li,
  .legal-document td,
  .legal-document th {
    font-size: 16px;
    line-height: 1.55;
  }

  .legal-footer {
    min-height: 172px;
    border-radius: 72px 72px 0 0;
  }

  .legal-footer__inner {
    width: calc(100% - 48px);
    min-height: 172px;
  }

  .legal-footer img {
    width: 150px;
    height: auto;
    padding: 12px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
