/* Шрифты как на лендинге (self-hosted, те же файлы в /pic/fonts).
   Текст — Manrope, заголовки — Playfair Display, логотип — Bebas Neue (ниже). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/pic/fonts/Manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/pic/fonts/Manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/pic/fonts/Manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/pic/fonts/Manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/pic/fonts/PlayfairDisplay-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/pic/fonts/PlayfairDisplay-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/pic/fonts/PlayfairDisplay-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("/pic/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(52, 129, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #0d1829 100%);
  color: #f5f7fb;
}

.legal-page {
  min-height: 100dvh;
  padding: clamp(16px, 3vw, 40px);
  box-sizing: border-box;
}

.legal-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Лого-блок как в шапке лендинга и тарифов (.brand--header из main.css):
   размер задаётся один раз на .brand и em-ом ведёт и иконку, и надпись;
   иконка выровнена по cap-height надписи, выравнивание по baseline. */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  flex: 0 0 auto;
  font-size: clamp(1.6rem, 1.8vw, 2.14rem);
}

.brand__mark {
  width: auto;
  height: 0.71em;
  display: block;
  flex: 0 0 auto;
}

.brand__wordmark {
  display: block;
  font-family: "Bebas Neue", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 1em;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #3481ff;
  text-transform: uppercase;
  white-space: nowrap;
}

.back-link {
  color: #d6e3ff;
  text-decoration: none;
  font-size: 14px;
}

.legal-card {
  padding: clamp(20px, 4vw, 44px);
  border-radius: 28px;
  background: rgba(14, 23, 38, 0.86);
  border: 1px solid rgba(138, 166, 255, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.legal-card__header {
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(138, 166, 255, 0.18);
}

.legal-title {
  margin: 16px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.legal-subtitle {
  margin: 0;
  max-width: 72ch;
  color: rgba(245, 247, 251, 0.78);
  line-height: 1.65;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-paragraph {
  margin: 0;
  color: rgba(245, 247, 251, 0.9);
  font-size: clamp(0.92rem, 0.84rem + 0.22vw, 1.05rem);
  line-height: 1.72;
  white-space: pre-line;
}

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

.legal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.button--primary {
  background: #8ba3ff;
  color: #07111f;
}

.button--ghost {
  border-color: rgba(245, 247, 251, 0.18);
  color: #f5f7fb;
  background: transparent;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 12px;
  }

  .legal-card {
    padding: 18px;
    border-radius: 20px;
  }
}
