*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #3e2e31; /* основной текст в палитре */
  background: #f3f4f6;
}

/* Фон только для главной страницы */
body.legal-home {
  background:
    radial-gradient(circle at top left, rgba(221, 160, 38, 0.18), transparent 55%),
    linear-gradient(to right, rgb(60, 59, 63), rgb(96, 92, 60));
}

/* Общий контейнер страницы */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Шапка */
.site-header {
  background: linear-gradient(90deg, #2c1608, #3e2e31);
  color: #ffffff;
  padding: 20px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.brand {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(221, 160, 38, 0.12);
  border: 1px solid rgba(221, 160, 38, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #dda026;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.app-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.app-subtitle,
.app-subtitle-en {
  margin: 2px 0 0;
  font-size: 13px;
  opacity: 0.9;
}

/* Контент */
.content {
  flex: 1;
  max-width: 960px;
  margin: 24px auto 32px;
  padding: 0 16px;
}

/* Для главной чуть более центрированное ощущение */
.content--centered {
  max-width: 840px;
}

/* Карточки */
.card {
  background: #fdfdfb;
  border-radius: 18px;
  padding: 24px 22px;
  margin-bottom: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(62, 46, 49, 0.16);
}

/* Hero-карточка чуть выделена */
.card--hero {
  border-color: rgba(221, 160, 38, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

/* Support-карточка поспокойнее */
.card--support {
  margin-top: 8px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #2c1608;
}

.section-description {
  margin: 0 0 20px;
  font-size: 14px;
  color: #4b4a4f;
}

/* Кнопки документов */
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .links-grid {
    flex-direction: row;
  }
}

.btn {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  border: 1px solid transparent;
}

/* Основная кнопка — золотой акцент */
.btn.primary {
  background-color: #dda026;
  color: #2c1608;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.btn.primary:hover {
  background-color: #f0b63a;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}

/* Вторичная кнопка — светлый фон, тёмная рамка */
.btn.secondary {
  background-color: #fdfbf5;
  color: #3e2e31;
  border-color: rgba(221, 160, 38, 0.55);
}

.btn.secondary:hover {
  background-color: #f6f0e0;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.btn-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
}

/* Блок поддержки */
.support-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.support-item {
  display: flex;
  flex-direction: column;
}

.support-label {
  font-size: 13px;
  color: #6b7280;
}

.support-value {
  font-size: 15px;
  color: #dda026;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

.support-value:hover {
  text-decoration: underline;
}

.support-note {
  font-size: 13px;
  color: #4b4a4f;
  margin: 0;
}

/* Футер */
.footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #e5e7eb;
}

.footer-text,
.footer-text-en {
  margin: 0;
}

.footer-text-en {
  margin-top: 2px;
}

/* Переключатель языков */
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(221, 160, 38, 0.35);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.lang-btn:hover {
  background: rgba(221, 160, 38, 0.18);
  color: #ffffff;
  border-color: rgba(221, 160, 38, 0.6);
}

.lang-btn.active {
  background: #dda026;
  color: #2c1608;
  border-color: #dda026;
}

/* Языковые блоки — скрыты по умолчанию, показываются через JS */
.lang-block {
  display: none;
}

.lang-block.active {
  display: block;
}

/* Документ-страницы (privacy / terms) */
.document {
  text-align: left;
  line-height: 1.6;
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 12px;
  max-width: 900px;
  margin: 24px auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(62, 46, 49, 0.2);
}