/* Shared styling for the legal pages (privacy.html, terms.html). Kept separate from
   styles.css: those rules are built around the landing page's orb/hero/section rhythm, and a
   long document needs plain readable prose measure instead. Same type and palette. */

.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #1b2440;
  line-height: 1.65;
  font-size: 1rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #2f66f0;
  text-decoration: none;
}
.legal-back:hover { text-decoration: underline; }

.legal-wrap h1 {
  font-family: 'Golos Text', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: #10204d;
}

.legal-meta {
  font-size: 0.875rem;
  color: #6b7691;
  margin: 0 0 2.5rem;
}

.legal-wrap h2 {
  font-family: 'Golos Text', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  color: #10204d;
}

.legal-wrap h3 {
  font-family: 'Golos Text', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: #10204d;
}

.legal-wrap p, .legal-wrap li { margin: 0 0 0.85rem; }
.legal-wrap ul { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.legal-wrap a { color: #2f66f0; }

.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
}
.legal-wrap th, .legal-wrap td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e4e8f2;
  vertical-align: top;
}
.legal-wrap th { font-weight: 600; color: #10204d; background: #f6f8fd; }

/* Wide tables must scroll inside their own box rather than making the page scroll. */
.legal-table-scroll { overflow-x: auto; }

.legal-contact {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: #f6f8fd;
  border: 1px solid #e4e8f2;
  border-radius: 0.75rem;
}
.legal-contact p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Trilingual layout. Each page stacks the same document three times (RU, KK,
   EN), mirroring the reviewed source. The sections need a hard visual break so
   a reader scrolling past the end of one language does not mistake the next
   one for a continuation of the same document.
   --------------------------------------------------------------------------- */

.legal-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
}
.legal-langs a {
  font-size: 0.85rem;
  color: #10204d;
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border: 1px solid #e4e8f2;
  border-radius: 999px;
  background: #f6f8fd;
}
.legal-langs a:hover { border-color: #2f66f0; color: #2f66f0; }

.legal-eyebrow {
  font-family: 'Golos Text', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7691;
  margin: 0 0 0.4rem;
}

/* Only between sections: the first language needs no rule above it. */
.legal-lang + .legal-lang {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 2px solid #e4e8f2;
}

/* The h1 of a later language section should not sit as loud as the page's
   first one, but keeping the size is deliberate — each block is a full,
   standalone document, not a subsection. */
.legal-lang h1 { margin-top: 0; }

/* A heading is often the first child of the summary callout; drop its top
   margin so the box does not open with dead space. */
.legal-callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #f6f8fd;
  border: 1px solid #e4e8f2;
  border-radius: 0.75rem;
}
.legal-callout > :first-child { margin-top: 0; }
.legal-callout > :last-child { margin-bottom: 0; }
.legal-callout h2 { font-size: 1.05rem; margin-top: 0; }

.legal-crosslink {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e8f2;
  font-size: 0.9rem;
}
.legal-crosslink a { text-decoration: none; }
.legal-crosslink a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .legal-wrap { padding: 1.75rem 1rem 4rem; }
  .legal-wrap h1 { font-size: 1.6rem; }
  .legal-lang + .legal-lang { margin-top: 3rem; padding-top: 2.5rem; }
  .legal-callout { padding: 1rem 1.1rem; }
}
