/* Dedicated legal-page layout. Loaded after the main Labeli stylesheet. */
html:has(body.legal-page) {
  background: #09182a;
}

body.legal-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #09182a;
  color: #edf1f4;
  font-family: LabeliText, Arial, sans-serif;
}

.legal-page header {
  position: relative;
  inset: auto;
  z-index: 2;
  width: 100%;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--edge);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #071525;
  color: #edf1f4;
  mix-blend-mode: normal;
  pointer-events: auto;
}

.legal-page header .logo {
  position: static;
  width: 112px;
  height: auto;
  margin: 0;
  transform: none;
}

.legal-page header .logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.legal-page header .contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0 2px;
  border-bottom: 1px solid rgba(237, 241, 244, .45);
  color: #edf1f4;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-page header .contact:hover,
.legal-page header .contact:focus-visible {
  border-color: #4db3ff;
  color: #4db3ff;
}

.legal-main {
  width: min(1120px, calc(100% - (2 * var(--edge))));
  max-width: none;
  margin: 0 auto;
  padding: clamp(90px, 13vh, 150px) 0 clamp(110px, 16vh, 180px);
}

.legal-main > small {
  display: block;
  margin: 0;
  color: #9d886c;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-main h1 {
  max-width: 980px;
  margin: clamp(28px, 5vh, 55px) 0 clamp(80px, 12vh, 135px);
  color: #edf1f4;
  font-family: Labeli, Arial, sans-serif;
  font-size: clamp(58px, 8vw, 116px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.045em;
}

.legal-main section {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(0, 1.6fr);
  gap: clamp(30px, 7vw, 110px);
  padding: clamp(42px, 6vh, 72px) 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.legal-main h2 {
  margin: 0;
  color: #edf1f4;
  font-family: Labeli, Arial, sans-serif;
  font-size: clamp(27px, 2.8vw, 42px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.025em;
}

.legal-main section > p,
.legal-main section > ul {
  grid-column: 2;
}

.legal-main section > p + p,
.legal-main section > p + ul,
.legal-main section > ul + p {
  margin-top: -20px;
}

.legal-main p,
.legal-main li {
  color: #b8c2ca;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.72;
}

.legal-main p {
  margin: 0;
}

.legal-main ul {
  margin: 0;
  padding-left: 20px;
}

.legal-main li + li {
  margin-top: 5px;
}

.legal-main a {
  color: #edf1f4;
  text-decoration-color: #4db3ff;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-main a:hover,
.legal-main a:focus-visible {
  color: #4db3ff;
}

.legal-main .legal-note {
  margin-top: 52px;
  color: #74818c;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-footer {
  width: 100%;
  padding: 42px var(--edge);
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #071525;
  color: #6f7c87;
}

.legal-footer .footer-bottom {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.legal-footer .footer-bottom > img {
  width: 95px;
  height: auto;
  object-fit: contain;
}

.legal-footer .footer-bottom > span:last-child {
  justify-self: end;
}

.legal-footer .footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.legal-footer .footer-legal a {
  color: inherit;
  text-decoration: none;
}

.legal-footer .footer-legal a:hover,
.legal-footer .footer-legal a:focus-visible,
.legal-footer .footer-legal a[aria-current="page"] {
  color: #edf1f4;
}

@media (max-width: 720px) {
  .legal-page header {
    min-height: 82px;
    padding: 20px;
  }

  .legal-page header .logo {
    width: 82px;
  }

  .legal-page header .contact {
    min-height: 38px;
    font-size: 9px;
  }

  .legal-main {
    width: calc(100% - 40px);
    padding: 80px 0 105px;
  }

  .legal-main h1 {
    margin: 28px 0 78px;
    font-size: clamp(47px, 15vw, 67px);
  }

  .legal-main section {
    display: block;
    padding: 42px 0 48px;
  }

  .legal-main h2 {
    margin-bottom: 28px;
    font-size: 30px;
  }

  .legal-main section > p + p,
  .legal-main section > p + ul,
  .legal-main section > ul + p {
    margin-top: 20px;
  }

  .legal-main p,
  .legal-main li {
    font-size: 16px;
    line-height: 1.65;
  }

  .legal-footer {
    padding: 38px 20px;
  }

  .legal-footer .footer-bottom {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 26px;
  }

  .legal-footer .footer-legal {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .legal-footer .footer-bottom > span:last-child {
    margin-left: auto;
  }
}
