/* ============================================================
   TRXSEND — legal pages (privacy / terms)
   Requires brand.css.

   Typographic call: Unbounded is a display face. It carries the
   headings and chrome, but ~200 lines of policy text are set in a
   neutral stack — running Unbounded at paragraph length is unreadable
   and would undo the point of having a brand face at all.
   ============================================================ */

.legal-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.legal-body .glow-field {
  position: fixed;
  height: 90vh;
  inset: 0 0 auto 0;
  z-index: -1;
  opacity: 0.7;
}

.legal-body .glow-field::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.2) 100%);
}

/* ---------- content ---------- */
.legal-content {
  flex: 1;
  padding: calc(var(--header-h) + 88px) var(--gutter) 0;
}

.legal-container {
  max-width: 780px;
  margin: 0 auto;
}

/* Smaller than the landing display size on purpose: Russian legal
   titles are long compound words that blow past the measure at 56px. */
.legal-container h1 {
  font-family: var(--font);
  font-size: clamp(28px, 3.4vw, 44px);
  overflow-wrap: break-word;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  background: linear-gradient(90deg, #fff 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 14px;
}

.legal-updated {
  font-family: var(--font);
  font-size: var(--t-fine);
  font-weight: 300;
  color: var(--ink-50);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 48px;
}

.legal-section {
  margin-bottom: 44px;
}

.legal-section h2 {
  font-family: var(--font);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.legal-section h3 {
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--ink-70);
  margin: 24px 0 10px;
}

.legal-section p,
.legal-section li {
  font-family: var(--font-read);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-70);
  line-height: 1.75;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.legal-section li {
  padding-left: 20px;
  position: relative;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.legal-section li strong,
.legal-section p strong {
  color: var(--white);
  font-weight: 600;
}

.legal-section a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}

.legal-section a:hover {
  color: var(--white);
}

/* Closing acceptance block — the one white card on the page, so the
   sentence that actually binds the reader is the thing they see. */
.legal-acceptance {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-top: 56px;
}

.legal-acceptance p {
  font-family: var(--font);
  font-size: var(--t-fine);
  font-weight: 400;
  color: var(--black);
  line-height: 1.6;
}

.legal-acceptance p strong {
  color: var(--black);
  font-weight: 500;
}

/* ---------- footer ---------- */
.legal-footer {
  margin-top: 96px;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--hair);
}

.legal-footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-footer-inner > span {
  font-family: var(--font);
  font-size: var(--t-fine);
  font-weight: 300;
  color: var(--ink-50);
}

.legal-footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.legal-footer-links a {
  font-family: var(--font);
  font-size: var(--t-fine);
  font-weight: 300;
  color: var(--ink-70);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.legal-footer-links a:hover {
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .legal-content {
    padding-top: calc(var(--header-h) + 56px);
  }

  .legal-section p,
  .legal-section li {
    font-size: 14.5px;
  }

  .legal-acceptance {
    padding: 24px 22px;
  }

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
