/* Legal pages layout — namespaced under .legal-* */
.legal-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 48px 32px 96px;
}
.legal-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14px;
}
.legal-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-sidebar li {
  margin-bottom: 12px;
}
.legal-sidebar a {
  color: #666;
  text-decoration: none;
  transition: color 180ms;
}
.legal-sidebar a:hover {
  color: #0f0f0f;
}
.legal-sidebar a[aria-current="page"] {
  color: #0f0f0f;
  font-weight: 600;
}
.legal-content {
  max-width: 720px;
}
.legal-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}
.legal-content__updated {
  font-size: 13px;
  color: #888;
  margin-bottom: 32px;
}
.legal-content h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  font-weight: 700;
}
.legal-content h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  font-weight: 600;
}
.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
.legal-content ol,
.legal-content ul {
  padding-left: 24px;
}
.legal-content table.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.legal-content table.legal-table th,
.legal-content table.legal-table td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.legal-content table.legal-table thead {
  background: #f5f5f5;
}
.legal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin-top: 24px;
}
.legal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.legal-form input,
.legal-form select {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.legal-form button {
  padding: 12px 20px;
  border-radius: 999px;
  background: #0f0f0f;
  color: #fff;
  border: 0;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
}
.legal-form button:hover {
  background: #2a2a2a;
}
.legal-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.legal-form__captcha {
  height: 0;
  min-height: 0;
  overflow: hidden;
}
.legal-form__status {
  min-height: 20px;
  margin: 0;
  color: #334155;
  font-size: 14px;
}
.legal-form__status[data-state="success"] {
  color: #166534;
}
.legal-form__status[data-state="error"] {
  color: #b91c1c;
}

@media (max-width: 1023px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px 64px;
  }
  .legal-sidebar {
    position: static;
  }
  .legal-sidebar details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
  }
}
