@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --legal-bg: #080808;
  --legal-surface: rgba(255, 255, 255, 0.035);
  --legal-line: rgba(255, 255, 255, 0.13);
  --legal-text: rgba(255, 255, 255, 0.72);
  --legal-muted: rgba(255, 255, 255, 0.48);
  --legal-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 255, 255, 0.08), transparent 24rem),
    radial-gradient(circle at 7% 42%, rgba(255, 255, 255, 0.035), transparent 30rem),
    var(--legal-bg);
  color: var(--legal-text);
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 64px;
  content: '';
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

.legal-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0;
  border-bottom: 1px solid var(--legal-line);
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 145px;
  height: 66px;
  overflow: hidden;
  text-decoration: none;
}

.legal-brand img {
  position: absolute;
  top: -75px;
  left: -20px;
  display: block;
  width: 191px;
  height: 191px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--legal-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-home-link::before {
  width: 34px;
  height: 1px;
  background: var(--legal-white);
  content: '';
  transition: width 220ms ease;
}

.legal-home-link:hover::before,
.legal-home-link:focus-visible::before {
  width: 52px;
}

.legal-hero {
  padding: clamp(88px, 13vw, 170px) 0 clamp(62px, 8vw, 105px);
  border-bottom: 1px solid var(--legal-line);
}

.legal-kicker {
  margin: 0 0 22px;
  color: var(--legal-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.legal-title {
  max-width: 970px;
  margin: 0;
  color: var(--legal-white);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.legal-title strong {
  display: block;
  font-weight: 700;
}

.legal-lead {
  max-width: 720px;
  margin: 38px 0 0;
  color: var(--legal-text);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 38px;
  color: var(--legal-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(45px, 8vw, 120px);
  padding: clamp(65px, 9vw, 120px) 0;
}

.legal-aside {
  position: sticky;
  top: 116px;
  align-self: start;
}

.legal-aside-label {
  display: block;
  margin-bottom: 17px;
  color: var(--legal-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.legal-aside a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--legal-text);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.legal-aside a:hover,
.legal-aside a:focus-visible {
  padding-left: 7px;
  color: var(--legal-white);
}

.legal-content {
  max-width: 790px;
}

.legal-section {
  padding: 0 0 58px;
  margin-bottom: 58px;
  border-bottom: 1px solid var(--legal-line);
  scroll-margin-top: 120px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section-number {
  display: inline-block;
  min-width: 42px;
  margin-bottom: 15px;
  color: var(--legal-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.legal-section h2 {
  margin: 0 0 23px;
  color: var(--legal-white);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.legal-section h3 {
  margin: 32px 0 12px;
  color: var(--legal-white);
  font-size: 20px;
  font-weight: 600;
}

.legal-section p {
  margin: 0 0 17px;
}

.legal-section ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 24px;
}

.legal-section li::before {
  position: absolute;
  top: 0.73em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--legal-white);
  content: '';
}

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

.legal-note {
  padding: 24px;
  margin-top: 28px;
  border: 1px solid var(--legal-line);
  border-radius: 2px;
  background: var(--legal-surface);
}

.legal-contact {
  display: grid;
  gap: 10px;
  padding: 28px;
  margin-top: 25px;
  border: 1px solid var(--legal-line);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}

.legal-contact a {
  width: fit-content;
  color: var(--legal-white);
  font-weight: 600;
  text-underline-offset: 5px;
}

.legal-footer {
  padding: 34px 0;
  border-top: 1px solid var(--legal-line);
  color: var(--legal-muted);
  font-size: 13px;
}

.legal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-footer a {
  color: var(--legal-text);
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--legal-white);
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 5px;
}

@media (max-width: 850px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .legal-aside-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .legal-shell {
    width: min(100% - 28px, 1180px);
  }

  .legal-header {
    padding: 13px 0;
  }

  .legal-brand {
    width: 116px;
    height: 53px;
  }

  .legal-brand img {
    top: -60px;
    left: -16px;
    width: 153px;
    height: 153px;
  }

  .legal-home-link {
    font-size: 11px;
  }

  .legal-home-link::before {
    display: none;
  }

  .legal-hero {
    padding-top: 72px;
  }

  .legal-title {
    font-size: clamp(44px, 16vw, 68px);
  }

  .legal-aside {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding-bottom: 42px;
    margin-bottom: 42px;
  }

  .legal-footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
