body {
  background: linear-gradient(135deg, #0c082b 0%, #182c4f 100%) fixed !important;
}

.legal-page {
  padding: 140px 0;
  position: relative;
}

.legal-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 100%;
}

.legal-breadcrumbs__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.legal-breadcrumbs__link:hover {
  color: #0096ff;
}

.legal-breadcrumbs__link svg {
  color: rgba(255, 255, 255, 0.4);
}

.legal-breadcrumbs__divider {
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.legal-breadcrumbs__current-container {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex: 1;
  text-align: left;
}

.legal-breadcrumbs__current {
  color: #0096ff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.legal-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

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

.legal-sidebar__sticky {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px;
}

.legal-sidebar__title {
  font-size: 12px;
  font-weight: 700;
  color: #0096ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.legal-sidebar__link {
  display: block;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
}

.legal-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.legal-sidebar__link.active {
  background: rgba(0, 150, 255, 0.1);
  color: #0096ff;
  border-left-color: #0096ff;
}

.legal-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 50px;
}

.legal-content__header {
  margin-bottom: 20px;
  padding: 20px 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  top: 0;
  left: 0;
}

.legal-content__label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(0, 150, 255, 0.15);
  color: #0096ff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0;
}

.legal-content__title {
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.legal-content__meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.legal-content__meta time {
  color: rgba(255, 255, 255, 0.7);
}

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

.legal-content__body h2 {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 24px 0;
  line-height: 38px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 140px;
}

.legal-content__body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 16px 0;
  line-height: 1.4;
}

.legal-content__body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 24px 0 12px 0;
  line-height: 1.4;
}

.legal-content__body p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 10px 0;
}

.legal-content__body strong,
.legal-content__body b {
  color: #ffffff;
  font-weight: 600;
}

.legal-content__body em,
.legal-content__body i {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.legal-content__body a {
  color: #0096ff;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.legal-content__body a:hover {
  border-bottom-color: #0096ff;
}

.legal-content__body ul,
.legal-content__body ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}

.legal-content__body ul li,
.legal-content__body ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.legal-content__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #0096ff;
  border-radius: 50%;
}

.legal-content__body ol {
  counter-reset: item;
}

.legal-content__body ol li {
  counter-increment: item;
}

.legal-content__body ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #0096ff;
  min-width: 20px;
}

.legal-content__body ul li:last-child,
.legal-content__body ol li:last-child {
  margin-bottom: 0;
}

.legal-content__body ul ul,
.legal-content__body ol ol,
.legal-content__body ul ol,
.legal-content__body ol ul {
  margin-top: 12px;
  margin-bottom: 0;
  padding-left: 20px;
}

.legal-content__body ul ul li::before {
  background: rgba(0, 150, 255, 0.5);
  width: 5px;
  height: 5px;
}

.legal-content__body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(0, 150, 255, 0.05);
  border-left: 3px solid #0096ff;
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.legal-content__body blockquote p {
  margin: 0;
}

.legal-content__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.legal-content__body table th,
.legal-content__body table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.legal-content__body table th {
  background: rgba(0, 150, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
}

.legal-content__body table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.legal-content__body hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 40px 0;
}

.legal-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

@media (max-width: 1024px) {
  .legal-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-sidebar {
    display: none;
  }

  .legal-content {
    padding: 20px;
  }

  .legal-content__body ul li,
  .legal-content__body ol li {
    text-align: left;
  }

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

  .legal-content__body ul,
  .legal-content__body ol {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .legal-page {
    padding: 120px 0;
  }

  .legal-content {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .legal-content__body {
    gap: 10px;
  }
  .legal-content__title {
    font-size: 32px;
  }

  .legal-content__body h2 {
    font-size: 24px;
    margin: 0 0 14px 0;
  }

  .legal-content__body h3 {
    font-size: 18px;
    margin: 0;
  }

  .legal-content__body p,
  .legal-content__body ul li,
  .legal-content__body ol li {
    font-size: 14px;
    text-align: left;
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 24px 20px;
    text-align: left;
  }

  .legal-content__header {
    margin-bottom: 20px;
    padding: 20px;
  }

  .legal-content__title {
    font-size: 24px;
  }

  .legal-content__body h2 {
    font-size: 16px;
    margin: 0;
  }

  .legal-content__body h3 {
    font-size: 17px;
    margin: 10px 0;
  }

  .legal-content__body {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }
}
