:root {
  --legal-bg: #ececec;
  --legal-card: #ffffff;
  --legal-text: #1b1a1a;
  --legal-muted: #666666;
  --legal-line: #e8e8e8;
  --legal-grad: linear-gradient(90deg, #ff0f3a 2.47%, #3c34c1 98.44%);
  --legal-container: 1180px;
}

body.legal-page {
  background: var(--legal-bg);
  color: var(--legal-text);
}

.legal-page .header {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 80px), 1200px);
  transform: translateX(-50%);
  z-index: 999;
}

.legal-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #07111f;
}

.legal-hero__video,
.legal-hero__overlay {
  position: absolute;
  inset: 0;
}

.legal-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legal-hero__overlay {
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.28) 0%, rgba(8, 14, 24, 0.55) 100%),
    radial-gradient(circle at 12% 18%, rgba(0, 226, 186, 0.25), transparent 24%),
    radial-gradient(circle at 50% 10%, rgba(111, 72, 255, 0.18), transparent 18%),
    radial-gradient(circle at 80% 32%, rgba(36, 96, 255, 0.16), transparent 22%);
}

.legal-hero__inner,
.legal-container {
  width: min(calc(100% - 80px), var(--legal-container));
  margin: 0 auto;
}

.legal-hero__inner {
  position: relative;
  z-index: 2;
  padding: 170px 0 92px;
}

.legal-hero__content {
  max-width: 760px;
  color: #fff;
}

.legal-hero__eyebrow,
.legal-article__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #f14967;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.legal-hero__content h1 {
  margin: 0 0 18px;
  font-family: 'SUSE', Arial, sans-serif;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.legal-hero__content p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 30px;
}

.legal-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #efefef;
}

.legal-breadcrumb .legal-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  color: #7a7a7a;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}

.legal-main {
  padding: 52px 0 110px;
  background: #fff;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 120px;
}

.legal-sidebar__card {
  padding: 24px;
  border: 1px solid var(--legal-line);
  border-radius: 20px;
  background: #fafafa;
}

.legal-sidebar__label {
  margin-bottom: 16px;
  color: #1b1a1a;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.legal-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-sidebar__nav a {
  color: #5f5f5f;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 22px;
  transition: color 0.2s ease;
}

.legal-sidebar__nav a:hover {
  color: #1b1a1a;
}

.legal-article {
  padding: 34px;
  border: 1px solid var(--legal-line);
  border-radius: 28px;
  background: var(--legal-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

.legal-article__header {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--legal-line);
}

.legal-article__header h2 {
  margin: 0 0 16px;
  font-family: 'SUSE', Arial, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #1b1a1a;
}

.legal-article__header p,
.legal-section p {
  color: var(--legal-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 30px;
}

.legal-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--legal-line);
}

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

.legal-section h3 {
  margin: 0 0 16px;
  font-family: 'SUSE', Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1b1a1a;
}

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

@media (max-width: 1024px) {
  .legal-page .header,
  .legal-hero__inner,
  .legal-container {
    width: min(calc(100% - 40px), var(--legal-container));
  }

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

  .legal-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 767px) {
  .legal-page .header,
  .legal-hero__inner,
  .legal-container {
    width: min(calc(100% - 24px), var(--legal-container));
  }

  .legal-hero {
    min-height: 430px;
  }

  .legal-hero__inner {
    padding: 132px 0 64px;
  }

  .legal-hero__content h1 {
    font-size: 46px;
  }

  .legal-hero__content p {
    font-size: 16px;
    line-height: 27px;
  }

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

  .legal-sidebar__card,
  .legal-article {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .legal-article__header {
    padding-bottom: 22px;
    margin-bottom: 22px;
  }

  .legal-article__header h2 {
    font-size: 36px;
    line-height: 1.02;
  }

  .legal-section h3 {
    font-size: 26px;
  }

  .legal-article__header p,
  .legal-section p {
    font-size: 16px;
    line-height: 28px;
  }
}
