/* Legal pages: RU/EN tabs + document layout + deletion form */

.legal-page {
  /* header is position:fixed; .header-content height 80px */
  padding: 100px 15px 60px;
  background: #f7f7f7;
  box-sizing: border-box;
}

.legal-page .legal-shell {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 28px 36px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Defeat site .container{width:1170px} if any leftover wrappers remain */
.legal-page .container,
.legal-shell .container,
.legal-doc .container {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  float: none !important;
  box-sizing: border-box !important;
}

.legal-page .legal-lang-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  position: relative;
  z-index: 2;
}

.legal-page .legal-lang-tabs button,
.legal-page .legal-lang-tabs button[type="button"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #222 !important;
  background: #fff !important;
  color: #222 !important;
  padding: 8px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
  line-height: 1.2 !important;
  min-width: 52px;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-transform: uppercase;
}

.legal-page .legal-lang-tabs button.is-active,
.legal-page .legal-lang-tabs button[aria-selected="true"] {
  background: #222 !important;
  color: #fff !important;
}

.legal-lang-panel[hidden] {
  display: none !important;
}

.legal-doc {
  background: transparent;
  padding: 0;
  border: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.legal-doc h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

.legal-doc .legal-lead {
  margin: 0 0 28px;
  color: #555;
  font-size: 16px;
  line-height: 1.5;
}

.legal-doc h2 {
  margin: 28px 0 12px;
  font-size: 20px;
}

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

.legal-doc p,
.legal-doc li {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.25em;
  margin: 0 0 16px;
}

.legal-doc a {
  color: #0b57d0;
  text-decoration: underline;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.legal-list > li {
  margin-bottom: 12px;
  max-width: 100%;
}

.legal-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #e0e0e0;
  text-decoration: none !important;
  color: inherit !important;
  background: #fafafa;
  max-width: 100%;
  box-sizing: border-box;
}

.legal-link:hover {
  border-color: #222;
}

.legal-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 220px;
}

.legal-description {
  color: #666;
  font-size: 14px;
}

.legal-action {
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
  flex: 0 0 auto;
}

.deletion-form .form-row {
  margin-bottom: 16px;
}

.deletion-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.deletion-form input[type="tel"],
.deletion-form input[type="email"],
.deletion-form textarea {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 15px;
  box-sizing: border-box;
}

.deletion-form .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  margin: 8px 0 18px;
}

.deletion-form .form-check input {
  margin-top: 3px;
}

.deletion-form .form-check label {
  margin: 0;
  font-weight: 400;
}

.deletion-form .submit-btn {
  background: #222;
  color: #fff;
  border: 0;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.deletion-form .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.deletion-form .form-note {
  margin-top: 12px;
  color: #666;
  font-size: 13px;
}

.deletion-form .form-status {
  margin-top: 14px;
  font-size: 14px;
}

.deletion-form .form-status.success {
  color: #0a7a2f;
}

.deletion-form .form-status.error {
  color: #b00020;
}

.deletion-form .hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.footer-legal-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .legal-page .legal-shell {
    padding: 20px 16px 28px;
  }

  .legal-doc h1 {
    font-size: 22px;
  }

  .legal-link {
    flex-direction: column;
    align-items: flex-start;
  }
}
