*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000000;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  background: #000000;
}

button,
a {
  font: inherit;
}

main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 72px;
  padding: 0 32px;
}

.logo,
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo-net {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9a9a9a;
  font-weight: 500;
}

.logo-net::before {
  content: "";
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.28);
}

.menu-toggle,
.nav-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle .icon-close {
  display: none;
}

.nav-head {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-left: auto;
}

.tab {
  color: #d4d4d4;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.tab:hover,
.tab[aria-current="page"] {
  color: #ffffff;
}

.lang {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  background: #141414;
}

.lang-toggle svg {
  width: 22px;
  height: 22px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 140px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0a0a0a;
}

.lang-menu[hidden] {
  display: none !important;
}

.lang-menu button {
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d4d4d4;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: #141414;
  color: #ffffff;
}

.legal {
  width: min(760px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal h1 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.kicker {
  margin: 0 0 8px;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-contents {
  display: grid;
  gap: 8px;
  margin: 22px 0 4px;
  padding: 0;
  list-style: none;
}

.legal-contents a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.legal-contents a:hover {
  color: #4d82ff;
}

#imprint-notice {
  margin-top: 56px;
}

.imprint-address {
  font-style: normal;
}

.legal .is-placeholder {
  color: #737373;
  font-weight: 400;
}

.legal a.is-placeholder {
  pointer-events: none;
  text-decoration: none;
}

.legal h2 {
  margin: 36px 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.legal h3 {
  margin: 18px 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.legal ol,
.legal ul {
  margin: 8px 0 0;
  padding-left: 22px;
  color: #d4d4d4;
}

.legal li {
  margin-top: 6px;
}

.legal li p {
  margin: 0;
}

.legal p,
.lead {
  margin: 0;
  color: #d4d4d4;
}

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

.rule-limit {
  color: #ffffff;
  font-weight: 600;
}

.legal a,
.doc-list a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.legal a:hover,
.doc-list a:hover {
  color: #4d82ff;
}

.doc-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.doc-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0a0a0a;
}

.doc-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 20px;
}

.doc-list span {
  color: #b5b5b5;
  font-weight: 400;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 28px 32px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-legal a,
.footer-discord {
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-discord:hover {
  color: #ffffff;
}

@media (max-width: 960px) {
  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }

  .header-bar,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-bar {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .logo {
    margin-right: auto;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 0 16px 24px;
    overflow: auto;
    background: #000000;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
  }

  .nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 72px;
    height: 72px;
  }

  .nav-logo {
    font-size: 22px;
  }

  .nav-close {
    display: inline-flex;
  }

  .nav .tab {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: #141414;
    color: #ffffff;
    font-size: 17px;
  }

  .nav .lang {
    margin-top: 8px;
  }

  .legal {
    width: min(760px, calc(100% - 32px));
  }

  .legal h1 {
    font-size: 36px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 16px;
    row-gap: 14px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .footer-legal {
    display: contents;
  }

  .footer-legal a:nth-child(1) { grid-area: 1 / 1; }
  .footer-legal a:nth-child(2) { grid-area: 2 / 1; }
  .footer-legal a:nth-child(3) { grid-area: 3 / 1; }
  .footer-legal a:nth-child(4) { grid-area: 1 / 2; }
  .footer-legal a:nth-child(5) { grid-area: 2 / 2; }

  .footer-legal a:nth-child(-n + 3) {
    justify-self: start;
  }

  .footer-legal a:nth-child(n + 4),
  .footer-discord {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }

  .footer-discord {
    grid-row: 3;
  }
}
