.legal-page {
  background: #0f172a;
}

.legal-page .page-title {
  padding-bottom: 72px;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #22d3ee;
}

.legal-page .page-title p {
  max-width: 720px;
  margin: 0 auto 20px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.8;
}

.legal-content {
  padding: 74px 0 96px;
}

.legal-toc {
  position: sticky;
  top: 112px;
  padding: 8px 0 8px 22px;
  border-left: 2px solid #334155;
}

.legal-toc-label {
  display: block;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.legal-toc a {
  display: block;
  padding: 7px 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.45;
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: #67e8f9;
}

.legal-article {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.9;
}

.legal-intro {
  position: relative;
  margin-bottom: 44px;
  padding: 26px 28px 26px 78px;
  border: 1px solid #334155;
  border-left: 3px solid #22d3ee;
  border-radius: 6px;
  background: #162033;
}

.legal-intro i {
  position: absolute;
  top: 28px;
  left: 28px;
  color: #22d3ee;
  font-size: 28px;
}

.legal-intro p {
  margin: 0;
  color: #e2e8f0;
}

.legal-section {
  position: relative;
  padding: 42px 0 34px;
  border-top: 1px solid #29364d;
  scroll-margin-top: 112px;
}

.legal-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.legal-section-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.legal-section-number {
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #155e75;
  border-radius: 4px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.legal-section h2 {
  margin: 0;
  color: #ffffff;
  font-size: 27px;
  font-weight: 650;
}

.legal-section h3 {
  margin: 26px 0 10px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 650;
}

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

.legal-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

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

.legal-list li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid #22d3ee;
  border-radius: 1px;
}

.legal-list strong {
  color: #f8fafc;
}

.legal-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
}

.legal-detail {
  min-width: 0;
  padding: 22px 20px;
  border-right: 1px solid #334155;
}

.legal-detail:last-child {
  border-right: 0;
}

.legal-detail h3 {
  margin: 0 0 8px;
  color: #67e8f9;
  font-size: 16px;
}

.legal-detail p {
  margin: 0;
  color: #aebdd1;
  font-size: 14px;
  line-height: 1.75;
}

.browser-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.browser-list span {
  padding: 7px 12px;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #dbeafe;
  font-size: 13px;
}

.legal-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
}

.legal-process-step {
  padding: 25px 22px;
  border-right: 1px solid #334155;
}

.legal-process-step:last-child {
  border-right: 0;
}

.legal-process-step span {
  display: block;
  margin-bottom: 10px;
  color: #22d3ee;
  font-size: 12px;
  font-weight: 800;
}

.legal-process-step h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.legal-process-step p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.legal-contact {
  margin-top: 46px;
  padding-top: 32px;
  border-top: 2px solid #22d3ee;
}

.legal-contact h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 14px 0;
}

.legal-links a {
  color: #cbd5e1;
  font-size: 14px;
}

.legal-links a:hover,
.legal-links a[aria-current="page"] {
  color: #67e8f9;
}

.lang-buttons {
  position: fixed;
  top: 50%;
  left: 14px;
  z-index: 996;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}

.lang-btn33 {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #475569;
  border-radius: 50%;
  background: #1f2937;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.22);
}

.lang-btn33 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .legal-content {
    padding-top: 54px;
  }

  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 18px;
    margin-bottom: 42px;
    padding: 18px 20px;
    border: 1px solid #334155;
    border-radius: 6px;
  }

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

@media (max-width: 767px) {
  .legal-page .page-title {
    padding: 126px 20px 58px;
  }

  .legal-page .page-title h1 {
    font-size: 34px;
  }

  .legal-page .page-title p {
    font-size: 15px;
  }

  .legal-content {
    padding: 42px 0 70px;
  }

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

  .legal-intro {
    padding: 22px 20px;
  }

  .legal-intro i {
    position: static;
    display: block;
    margin-bottom: 12px;
  }

  .legal-section {
    padding: 34px 0 26px;
  }

  .legal-section h2 {
    font-size: 23px;
  }

  .legal-detail-grid,
  .legal-process {
    grid-template-columns: 1fr;
  }

  .legal-detail,
  .legal-process-step {
    border-right: 0;
    border-bottom: 1px solid #334155;
  }

  .legal-detail:last-child,
  .legal-process-step:last-child {
    border-bottom: 0;
  }

  .lang-buttons {
    top: auto;
    bottom: 18px;
    left: 14px;
    flex-direction: row;
    transform: none;
  }

  .legal-links {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}
