.legal-page {
  background: #101715;
  color: #edf2ee;
  font-family: var(--font-rubik);
  line-height: 1.7;
}

.legal-page .site-header {
  position: sticky;
  top: 0;
  background: #101715;
  border-bottom: 1px solid #304038;
  padding: 16px 0;
}

.legal-page .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.legal-page .brand-text {
  text-align: left;
}

.legal-page .brand-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
}

.legal-page .brand-text h1 {
  color: #edf2ee;
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0;
}

.legal-page .brand-text span {
  color: #a6bab0;
  font-size: 0.7rem;
}

.legal-page h1,
.legal-page h2,
.legal-page a,
.legal-page .brand-text span {
  letter-spacing: 0;
  text-shadow: none;
}

.legal-page .main-nav a {
  font-size: 0.95rem;
  text-transform: none;
  transform: none;
}

.legal-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  justify-content: center;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 64px;
  text-align: left;
}

.legal-contents {
  align-self: start;
  position: sticky;
  top: 120px;
}

.legal-contents h2 {
  color: #a6bab0;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 0 12px;
}

.legal-contents a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #29372f;
  color: #c1d1c7;
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-contents a:hover {
  color: #e6be62;
}

.legal-page-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-page-content > h1 {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}

.legal-page-content > h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid #304038;
  scroll-margin-top: 120px;
}

.legal-page-content p,
.legal-page-content li {
  color: #baccc1;
  font-size: 1rem;
  margin-bottom: 14px;
}

.legal-page-content strong {
  color: #edf2ee;
}

.legal-page-content ul,
.legal-page-content ol {
  padding-left: 24px;
  margin: 20px 0;
}

.legal-page-content li {
  padding-left: 6px;
}

.legal-page-content li::marker {
  color: #e6be62;
  font-weight: 600;
}

.legal-page-content a {
  color: #e6be62;
  text-underline-offset: 4px;
}

.legal-page-content .legal-meta {
  font-size: 0.85rem;
  color: #a6bab0;
}

.legal-page-content .badge-info {
  margin: 28px 0;
  padding: 8px 0 8px 20px;
  border-left: 3px solid #77b69b;
  color: #c1d1c7;
  font-size: 0.95rem;
}

.legal-page-content .legal-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #62a58b;
  border-radius: 8px;
  background: #237c5b;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  margin: 8px 0 20px;
}

.legal-contact:hover {
  background: #2b906a;
}

.legal-page a:focus-visible {
  outline: 2px solid #e6be62;
  outline-offset: 4px;
}

.legal-page .site-footer {
  background: #101715;
  border-top: 1px solid #304038;
  padding: 24px 0;
  color: #a6bab0;
  font-size: 0.85rem;
}

.legal-page .site-footer a {
  color: #c1d1c7;
  text-decoration: none;
}

.legal-page .site-footer a:hover {
  color: #e6be62;
}

@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 32px;
    padding-top: 32px;
  }

  .legal-contents {
    position: static;
  }

  .legal-contents nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
  }

  .legal-contents a {
    min-height: 44px;
  }

  .legal-page-content > h1 {
    font-size: 1.8rem;
  }
}
