@font-face {
  font-display: swap;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/Montserrat-Regular.lat.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  src: url("/assets/fonts/Montserrat-SemiBold.lat.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: DrukWide;
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/DrukWide-Bold.lat.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --background: #0d081b;
  --panel: #17102d;
  --panel-soft: rgba(36, 23, 70, 0.72);
  --text: #f6f2ff;
  --muted: #c5bdd8;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #8a5cff;
  --accent-light: #c9b6ff;
  --max-width: 76rem;
  font-family: Montserrat, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 9rem;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(117, 59, 253, 0.2), transparent 28rem),
    radial-gradient(circle at 90% 55%, rgba(205, 68, 255, 0.12), transparent 32rem),
    url("/assets/img/bg-texture.webp") 0 0 / 3.75rem 3.75rem,
    var(--background);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--accent-light);
}

a:hover,
a:focus-visible {
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffc93e;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  color: #fff;
  background: #693afe;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 8, 27, 0.9);
  backdrop-filter: blur(1rem);
}

.site-header__inner,
.site-footer__inner {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 9.5625rem;
  height: auto;
}

.site-nav,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.2rem;
}

.site-nav a,
.legal-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav__app {
  padding: 0.65rem 1rem;
  border-radius: 1rem;
  background: #753bfd;
}

main {
  width: min(58rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.legal-shell {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel-soft);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.22);
}

.legal-shell h1 {
  margin: 0 0 1rem;
  font-family: DrukWide, Montserrat, system-ui, sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.25;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-link {
  display: inline-flex;
  margin: 0.5rem 0.75rem 0.5rem 0;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  color: #fff;
  background: #753bfd;
  font-weight: 600;
  text-decoration: none;
}

.legal-shell h2 {
  margin: 2.2rem 0 0.65rem;
  font-size: clamp(1.18rem, 2.6vw, 1.5rem);
  line-height: 1.35;
}

.legal-shell h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal-shell p,
.legal-shell ul,
.legal-shell ol,
.legal-shell dl {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

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

.legal-shell li + li {
  margin-top: 0.35rem;
}

.legal-notice,
.intro {
  color: var(--muted);
}

.legal-notice {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-content > :first-child {
  margin-top: 1.75rem;
}

.company-facts {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.company-facts > div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) 1fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.company-facts > div + div {
  border-top: 1px solid var(--line);
}

.company-facts dt {
  color: var(--muted);
  font-weight: 600;
}

.company-facts dd {
  margin: 0;
}

.support-contact {
  margin: 1.5rem 0 2rem;
  padding: 1.2rem;
  border: 1px solid rgba(138, 92, 255, 0.55);
  border-radius: 1rem;
  background: rgba(117, 59, 253, 0.12);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.support-grid a {
  display: block;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 5, 20, 0.8);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) 1.5fr;
  gap: 2rem;
  padding: 2rem 0;
}

.site-footer p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer strong {
  color: var(--text);
}

.legal-links {
  align-content: start;
  justify-content: flex-end;
}

@media (max-width: 45rem) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.9rem 0;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav__app {
    margin-left: auto;
  }

  .support-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 32rem) {
  .company-facts > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .site-nav {
    gap: 0.55rem 0.85rem;
  }

  .site-nav a {
    font-size: 0.82rem;
  }
}

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