@font-face { font-family: "Uni Neue"; src: url("../../for%20the%20website%20Gemlive/fonts/unineueregular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Uni Neue"; src: url("../../for%20the%20website%20Gemlive/fonts/unineueheavy.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Uni Neue"; src: url("../../for%20the%20website%20Gemlive/fonts/unineueblack.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --ink: #121316;
  --paper: #f4f4f2;
  --blue: #2866ac;
  --sky: #79c7f4;
  --pink: #ff5d91;
  --line: rgba(18, 19, 22, .13);
  --frame: min(1160px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Uni Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.frame { width: var(--frame); margin-inline: auto; }

.legal-header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.legal-brand img { width: 132px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.legal-back span { font-size: 17px; line-height: 0; }
.legal-back:hover { color: #fff; border-color: var(--ink); background: var(--ink); }
.legal-back:focus-visible, .legal-nav a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.legal-hero {
  min-height: 470px;
  padding: 88px 0 70px;
  position: relative;
  overflow: hidden;
}
.legal-hero::after {
  content: "";
  width: min(600px, 56vw);
  aspect-ratio: 1;
  position: absolute;
  top: -32%;
  right: -8%;
  border-radius: 50%;
  background: var(--accent, var(--pink));
  opacity: .12;
  filter: blur(1px);
}
.legal-kicker { margin: 0 0 27px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.legal-hero h1 {
  max-width: 980px;
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: .88;
  letter-spacing: -.055em;
}
.legal-hero h1 span { color: var(--accent, var(--pink)); }
.legal-lead { max-width: 520px; margin: 44px 0 0 auto; color: #777b82; font-size: 16px; line-height: 1.45; }

.legal-layout {
  padding: 0 0 120px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.legal-aside { position: sticky; top: 28px; }
.legal-aside-label { margin: 0 0 15px; color: #9a9da2; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.legal-nav { display: flex; flex-direction: column; }
.legal-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); color: #777b82; font-size: 12px; line-height: 1.25; transition: color .2s ease, padding-left .2s ease; }
.legal-nav a:hover { padding-left: 6px; color: var(--blue); }
.legal-content { min-width: 0; }
.legal-content section {
  margin-bottom: 16px;
  padding: 46px 52px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(18, 19, 22, .045);
}
.legal-content section:first-child { background: #eaf4fc; }
.legal-content section:last-child { color: #fff; background: #242528; }
.legal-content h2 { margin: 0 0 28px; color: var(--blue); font-size: clamp(28px, 3vw, 42px); line-height: .95; letter-spacing: -.03em; }
.legal-content section:last-child h2 { color: var(--sky); }
.legal-content p { margin: 0 0 16px; font-size: 15px; line-height: 1.62; white-space: pre-line; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(40, 102, 172, .3); text-underline-offset: 3px; }
.legal-content section:last-child a { color: var(--sky); }
.legal-status { padding: 54px; border-radius: 28px; color: #777b82; background: #fff; font-size: 15px; text-align: center; }
.legal-status.error { color: #a12e52; background: #ffe6ee; }

.legal-footer { padding: 52px 0 34px; color: #fff; background: #242528; }
.legal-footer-top { padding-bottom: 48px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; border-bottom: 1px solid rgba(255,255,255,.13); }
.legal-footer-top img { width: 130px; filter: brightness(0) invert(1); }
.legal-footer-top p, .legal-footer-top a { margin: 0; color: #a9abb0; font-size: 12px; line-height: 1.5; }
.legal-footer-top a { justify-self: end; color: #fff; }
.legal-footer-bottom { padding-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 30px; color: #7e8187; font-size: 10px; }
.legal-footer-links { display: flex; gap: 22px; }
.legal-footer-links a[aria-current="page"] { color: #fff; }
.legal-up { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #55585d; border-radius: 50%; color: #fff; }

@media (max-width: 840px) {
  :root { --frame: min(100% - 32px, 680px); }
  .legal-header { height: 64px; }
  .legal-brand img { width: 105px; }
  .legal-hero { min-height: 390px; padding: 70px 0 55px; }
  .legal-hero::after { width: 78vw; top: -8%; right: -35%; }
  .legal-lead { margin: 34px 0 0; }
  .legal-layout { padding-bottom: 80px; grid-template-columns: 1fr; gap: 34px; }
  .legal-aside { position: static; }
  .legal-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .legal-content section { padding: 36px 32px; border-radius: 22px; }
  .legal-footer-top { grid-template-columns: 1fr; gap: 25px; }
  .legal-footer-top a { justify-self: start; }
  .legal-footer-links { flex-direction: column; gap: 7px; }
}

@media (max-width: 520px) {
  .legal-back { padding: 9px 12px; }
  .legal-back span { display: none; }
  .legal-hero { min-height: 345px; padding-top: 58px; }
  .legal-hero h1 { font-size: clamp(45px, 15vw, 68px); }
  .legal-lead { font-size: 14px; }
  .legal-nav { grid-template-columns: 1fr; }
  .legal-content section { padding: 30px 22px; }
  .legal-content h2 { margin-bottom: 22px; font-size: 29px; }
  .legal-content p { font-size: 14px; line-height: 1.58; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
