:root {
  color-scheme: dark;
  --bg: #061426;
  --bg-deep: #05111f;
  --ember: #c22530;
  --type-strong: rgba(238, 244, 250, 0.94);
  --type-main: rgba(226, 236, 247, 0.74);
  --type-muted: rgba(226, 236, 247, 0.58);
  --type-quiet: rgba(226, 236, 247, 0.42);
  --line: rgba(185, 211, 239, 0.1);
  --line-soft: rgba(185, 211, 239, 0.07);
  --page-width: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --font: "Instrument Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, #061426 0%, #07172a 38%, #061426 68%, #05111f 100%);
  color: var(--type-strong);
  font-family: var(--font);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.legal-shell {
  min-height: 100svh;
  overflow: hidden;
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  min-height: 96px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: rgba(228, 236, 246, 0.7);
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1;
}

.legal-brand img {
  width: 18px;
  height: 21px;
  object-fit: contain;
  opacity: 0.68;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 34px);
  color: rgba(226, 236, 247, 0.58);
  font-size: 1.34rem;
  font-weight: 500;
  line-height: 1;
}

.legal-nav a,
.legal-link {
  transition: color 0.32s ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-link:hover,
.legal-link:focus-visible,
.legal-nav a[aria-current="page"] {
  color: rgba(243, 247, 251, 0.88);
}

.legal-main {
  padding-top: clamp(86px, 10vw, 148px);
  padding-bottom: clamp(92px, 10vw, 148px);
}

.legal-hero {
  display: grid;
  max-width: 760px;
  gap: clamp(18px, 2.2vw, 28px);
  padding-bottom: clamp(58px, 7vw, 96px);
}

.legal-kicker {
  margin: 0;
  color: var(--type-muted);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--type-strong);
  font-size: clamp(4.4rem, 5.6vw, 7.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.legal-hero p:not(.legal-kicker) {
  max-width: 54ch;
  margin: 0;
  color: var(--type-main);
  font-size: clamp(1.62rem, 1.16vw, 1.86rem);
  line-height: 1.56;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 760px);
  gap: clamp(64px, 8vw, 132px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 34px;
  display: grid;
  gap: 16px;
  padding-top: 2px;
  color: var(--type-quiet);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.25;
}

.legal-toc a {
  width: fit-content;
  transition:
    color 0.32s ease,
    transform 0.32s cubic-bezier(0.19, 1, 0.22, 1);
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: rgba(243, 247, 251, 0.74);
  transform: translateX(2px);
}

.legal-content {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.legal-card {
  padding: clamp(26px, 3.2vw, 42px) 0;
  border-top: 1px solid var(--line-soft);
}

.legal-card:first-child {
  padding-top: 0;
  border-top: 0;
}

h2 {
  max-width: 24ch;
  margin: 0 0 14px;
  color: rgba(238, 244, 250, 0.9);
  font-size: clamp(2.1rem, 1.55vw, 2.6rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 26px 0 8px;
  color: rgba(238, 244, 250, 0.78);
  font-size: 1.58rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

p,
ul,
address {
  max-width: 64ch;
  margin: 0;
  color: var(--type-main);
  font-size: 1.52rem;
  line-height: 1.7;
}

p + p,
ul + p,
p + ul {
  margin-top: 13px;
}

ul {
  padding-left: 1.1em;
}

li + li {
  margin-top: 7px;
}

address {
  color: rgba(226, 236, 247, 0.78);
  font-style: normal;
}

.legal-link {
  color: rgba(238, 244, 250, 0.82);
  font-weight: 500;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: rgba(248, 251, 255, 0.96);
}

.legal-note {
  color: rgba(226, 236, 247, 0.62);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-top: 0;
  padding-bottom: clamp(38px, 4vw, 56px);
  color: var(--type-quiet);
  font-size: 1.22rem;
  line-height: 1.4;
}

.legal-footer .legal-link {
  color: rgba(226, 236, 247, 0.56);
}

.legal-footer .legal-link:hover,
.legal-footer .legal-link:focus-visible {
  color: rgba(243, 247, 251, 0.82);
}

@media (max-width: 900px) {
  .legal-main {
    padding-top: clamp(70px, 10vw, 104px);
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-toc {
    position: relative;
    top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-bottom: 8px;
  }
}

@media (max-width: 620px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .legal-nav {
    justify-content: flex-start;
    gap: 16px 22px;
  }

  .legal-main {
    padding-top: 54px;
    padding-bottom: 86px;
  }

  .legal-hero {
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(4rem, 13vw, 5.4rem);
  }

  .legal-hero p:not(.legal-kicker),
  p,
  ul,
  address {
    font-size: 1.48rem;
    line-height: 1.68;
  }
}
