/* Shared stylesheet for the three legal pages.
   Same Geist + Fraunces palette as the landing. We avoid pulling
   bundle.js / React on these pages — they're static prose, no need. */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Fraunces:ital,wght@0,400;1,400&display=swap');

:root {
  --bg: #FAF6EC;
  --ink: #1F2150;
  --ink-soft: #6B6E92;
  --accent: #E8675F;
  --line: rgba(31, 33, 80, 0.12);
  --serif: "Fraunces", serif;
  --sans: "Geist", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  line-height: 1.6;
}

.legal-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.legal-back {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-decoration: none;
}
.legal-back em { color: var(--accent); font-style: italic; }

.legal-lang {
  display: inline-flex;
  gap: 4px;
  background: rgba(31, 33, 80, 0.05);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 500;
}
.legal-lang button {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s ease, color 0.15s ease;
}
.legal-lang button.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(31, 33, 80, 0.08);
}

.legal-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -1.6px;
  font-weight: 400;
  margin: 0 0 16px;
}
.legal h1 em { color: var(--accent); font-style: italic; }

.legal .legal-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 40px 0 12px;
  line-height: 1.2;
}

.legal p, .legal li {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 14px;
}

.legal ul {
  padding-left: 24px;
  margin: 0 0 18px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(232, 103, 95, 0.4);
  text-underline-offset: 3px;
}
.legal a:hover { text-decoration-color: var(--accent); }

.legal-content[data-lang="en"] [lang="ru"],
.legal-content[data-lang="ru"] [lang="en"] {
  display: none;
}

.legal-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.legal-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}
.legal-footer a:hover { color: var(--ink); }
