:root {
  --ink: #161616;
  --ink-2: #262626;
  --ink-3: #1d1d1d;
  --grey-1: #696b6c;
  --grey-2: #808080;
  --grey-3: #cacbce;
  --red: #ef4129;
  --white: #fff;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--white);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(22, 22, 22, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

nav .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding-top: 0;
  padding-bottom: 0;
}

nav .brandlogo {
  grid-column: 1;
  justify-self: start;
}

.brandlogo {
  display: inline-flex;
  align-items: center;
}

.brandlogo img {
  display: block;
  width: auto;
  height: 26px;
}

nav .navlinks {
  grid-column: 2;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--grey-3);
  font-size: 14px;
  font-weight: 500;
}

.navlinks a {
  transition: color 0.15s ease;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: var(--white);
}

nav .navactions {
  grid-column: 3;
  justify-self: end;
}

.navactions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 0;
  border-radius: 2px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  background: #ff5239;
  transform: translateY(-1px);
}

.navburger {
  display: none;
  width: 38px;
  padding: 9px 2px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.navburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grey-3);
  transition:
    transform 0.25s ease,
    opacity 0.18s ease;
}

.navburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navburger.open span:nth-child(2) {
  opacity: 0;
}

.navburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobmenu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 60;
  display: none;
  padding: 8px 18px 22px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  flex-direction: column;
}

.mobmenu.open {
  display: flex;
}

.mobmenu a {
  display: block;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--grey-3);
  font-size: 16px;
  font-weight: 500;
  text-align: right;
}

.mobmenu a[aria-current="page"] {
  color: var(--white);
}

.legal-hero {
  padding: 176px 0 68px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(
    circle at 80% 10%,
    rgba(239, 65, 41, 0.08),
    transparent 38%
  );
}

.crumb {
  margin-bottom: 26px;
  color: var(--grey-1);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.crumb a:hover {
  color: var(--grey-3);
}

.crumb .sep {
  margin: 0 9px;
  opacity: 0.6;
}

.crumb .here {
  color: var(--grey-3);
}

.legal-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.legal-hero p {
  margin-top: 24px;
  color: var(--grey-3);
  font-size: 15px;
}

.legal-main {
  padding: 72px 0 112px;
}

.legal-copy {
  max-width: 980px;
}

.legal-intro {
  max-width: 850px;
  padding: 0 0 36px;
  border-bottom: 1px solid var(--line);
}

.legal-copy h2 {
  margin: 58px 0 20px;
  color: var(--white);
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal-copy h3 {
  margin: 34px 0 14px;
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.legal-copy p,
.legal-copy li {
  color: var(--grey-3);
  font-size: 15px;
  line-height: 1.75;
}

.legal-copy p + p {
  margin-top: 16px;
}

.legal-copy .legal-version {
  color: var(--grey-2);
  font-size: 13px;
  font-weight: 500;
}

.legal-copy strong {
  color: var(--white);
  font-weight: 600;
}

.legal-copy ul,
.legal-copy ol {
  margin: 16px 0 22px;
  padding-left: 25px;
}

.legal-copy li + li {
  margin-top: 8px;
}

.legal-copy li > ol,
.legal-copy li > ul {
  margin: 8px 0 12px;
}

.table-scroll {
  width: 100%;
  margin: 26px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.legal-copy table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.legal-copy th,
.legal-copy td {
  min-width: 140px;
  padding: 15px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-copy th {
  background: var(--ink-2);
}

.legal-copy td {
  background: var(--ink-3);
}

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

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

.legal-copy th p,
.legal-copy td p {
  font-size: 13px;
  line-height: 1.55;
}

footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--grey-1);
  font-size: 13px;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px 48px;
}

.foot-brand {
  grid-row: 1 / span 2;
  grid-column: 1;
  min-width: 0;
}

.foot-brand .brandlogo {
  margin-bottom: 18px;
}

.foot-brand .brandlogo img {
  height: 22px;
}

.foot-brand p {
  max-width: 72ch;
  color: var(--grey-1);
  font-size: 13px;
  line-height: 1.6;
}

.foot-right {
  display: contents;
}

.foot-social {
  display: flex;
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  gap: 10px;
}

.foot-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--grey-2);
}

.foot-social a:hover {
  border-color: var(--white);
  color: var(--white);
}

.foot-social svg {
  width: 16px;
  height: 16px;
}

.foot-nav {
  display: flex;
  grid-row: 2;
  grid-column: 2;
  align-items: center;
  justify-self: end;
  gap: 28px;
  font-size: 14px;
}

.foot-nav a:hover,
.foot-nav a[aria-current="page"] {
  color: var(--white);
}

.foot-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--grey-1);
  font-size: 12.5px;
}

.footer-address::before {
  content: " - ";
  white-space: pre;
}

@media (max-width: 900px) {
  .navlinks {
    display: none;
  }

  .navburger {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobmenu {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .foot-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px 18px;
  }

  .foot-brand {
    display: contents;
  }

  .foot-brand .brandlogo {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 0;
  }

  .foot-brand p {
    grid-row: 2;
    grid-column: 1 / -1;
    max-width: none;
  }

  .foot-social {
    grid-row: 1;
    grid-column: 2;
  }

  .foot-nav {
    grid-row: 3;
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 18px;
  }

  nav .btn {
    padding: 10px 15px;
    font-size: 13px;
  }

  .legal-hero {
    padding: 138px 0 52px;
  }

  .legal-main {
    padding: 52px 0 80px;
  }

  .legal-copy h2 {
    margin-top: 46px;
  }

  .legal-copy p,
  .legal-copy li {
    font-size: 14px;
  }

  footer {
    padding: 44px 0 32px;
  }

  .foot-social a {
    width: 30px;
    height: 30px;
  }

  .foot-nav {
    gap: 14px 20px;
    font-size: 13px;
  }

  .foot-bottom {
    grid-template-columns: max-content minmax(0, 1fr);
    row-gap: 5px;
    margin-top: 32px;
    padding-top: 18px;
    font-size: clamp(9.5px, 2.7vw, 11.5px);
    letter-spacing: -0.02em;
  }

  .footer-registration {
    white-space: nowrap;
  }

  .footer-registration::before {
    content: " - ";
    white-space: pre;
  }

  .footer-address {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .footer-address::before {
    content: none;
  }
}

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

  * {
    transition: none !important;
  }
}
