:root {
  color-scheme: light;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  color: #24212d;
  background: #f4f1fb;
  line-height: 1.72;
  scrollbar-color: #7454ef #e9e3f8;
  scrollbar-width: thin;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  padding: 30px 16px 72px;
  background:
    radial-gradient(circle at 12% 0%, rgba(116, 84, 239, 0.18), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(208, 59, 255, 0.1), transparent 28rem),
    linear-gradient(180deg, #f8f6fd 0%, #efebf7 100%);
}

html::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(84, 61, 171, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 61, 171, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
}

body {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(92, 70, 171, 0.16);
  border-radius: 28px;
  padding: 42px clamp(28px, 6vw, 68px) 68px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 30px 90px rgba(53, 39, 96, 0.16),
    inset 0 1px 0 #fff;
}

.legal-logo {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  margin: -6px auto 30px;
  border-bottom: 1px solid #ebe6f2;
  padding: 0 0 24px;
}

.legal-logo img {
  display: block;
  width: min(150px, 48vw);
  height: auto;
}

h1,
h2,
h3 {
  color: #18151f;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 780;
}

h2 {
  margin: 54px 0 16px;
  padding-top: 10px;
  font-size: clamp(23px, 3.4vw, 29px);
  font-weight: 760;
}

h3 {
  margin: 34px 0 12px;
  font-size: 19px;
  font-weight: 740;
}

p,
li,
td,
th {
  font-size: 15px;
}

p {
  margin: 13px 0;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-block: 7px;
}

a {
  color: #5437dc;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

strong {
  color: #181522;
  font-weight: 760;
}

hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid #e4dfec;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e1dbea;
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  scrollbar-color: #7454ef #eee9f7;
  scrollbar-width: thin;
}

th,
td {
  min-width: 180px;
  padding: 13px 15px;
  border-right: 1px solid #e7e1ee;
  border-bottom: 1px solid #e7e1ee;
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th:last-child,
td:last-child {
  border-right: 0;
}

th {
  color: #312a43;
  background: #f5f1fb;
}

html::-webkit-scrollbar,
table::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

html::-webkit-scrollbar-track,
table::-webkit-scrollbar-track {
  background: #e9e3f8;
}

html::-webkit-scrollbar-thumb,
table::-webkit-scrollbar-thumb {
  border: 3px solid #e9e3f8;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b6df4, #5437dc);
}

html::-webkit-scrollbar-thumb:hover,
table::-webkit-scrollbar-thumb:hover {
  background: #5437dc;
}

@media (max-width: 640px) {
  html {
    padding: 12px 10px 40px;
  }

  body {
    border-radius: 20px;
    padding: 28px 20px 46px;
  }

  .legal-logo {
    min-height: 66px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  h1 {
    font-size: clamp(31px, 10vw, 42px);
  }

  h2 {
    margin-top: 42px;
  }

  p,
  li,
  td,
  th {
    font-size: 14px;
  }
}
