/* Общие стили */
body {
  font-family: "Arial Black", sans-serif;
  background: #fff3e0;
  color: #b22222;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Заголовок */
header {
  background: #ffcc00;
  color: #b22222;
  padding: 20px;
  font-size: 28px;
  border-bottom: 5px solid #b22222;
  text-shadow: 2px 2px #fff;
}

/* Контент */
.content {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  border: 5px dashed #b22222;
  background: #fffaf0;
  box-shadow: 5px 5px 0px #ffcc00;
}

h2 {
  color: #b22222;
  margin-bottom: 15px;
}

ol {
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
}

/* Ссылки */
a {
  color: #b22222;
  font-weight: bold;
  text-decoration: none;
  background: #ffcc00;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 2px 2px #b22222;
  transition: 0.2s;
}

a:hover {
  background: #b22222;
  color: white;
  box-shadow: 2px 2px #ffcc00;
}

/* Фото */
img {
  width: 300px;
  max-width: 90%;
  margin: 20px 0;
  border: 5px solid #b22222;
  border-radius: 10px;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from {transform: rotateY(0deg);}
  to {transform: rotateY(360deg);}
}

/* === Футер в два яруса === */
footer.footer {
  margin-top: 40px;
  clear: both;
  background: #ffcc00; /* весь футер желтый */
}

/* Верхняя полоса с копирайтом */
.footer .footer-bar {
  color: #b22222;       /* красный текст */
  padding: 12px 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border-top: 5px solid #b22222; /* красная верхняя граница */
  text-shadow: 1px 1px #fff;
}

/* Блок со ссылками */
.footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  padding: 14px 10px;
  background: #ffcc00; /* тот же жёлтый цвет */
}

/* Кнопки-ссылки */
.footer .btn-link {
  display: inline-block;
  background: #ffcc00;   /* желтые кнопки */
  color: #b22222;        /* красный текст */
  border: 2px solid #b22222; /* красная обводка */
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 2px 2px 0 #b22222;
  transition: .2s;
}

.footer .btn-link:hover {
  background: #b22222;   /* при ховере красный фон */
  color: #fff;           /* белый текст на красном */
  box-shadow: 2px 2px 0 #ffcc00;
}

/* 📱 Адаптив под мобилки */
@media (max-width: 600px) {
  .footer .footer-bar {
    font-size: 14px;
    padding: 10px 8px;
  }
  .footer .footer-links {
    gap: 8px 10px;
    padding: 12px 8px;
  }
  .footer .btn-link {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* Контейнер для юридических страниц */
.doc-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 25px 30px;
  background: #fff8f0; /* светлый, нейтральный фон */
  font-family: "Arial", sans-serif;
  color: #000;
  line-height: 1.6;
  border-radius: 6px;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.1);
}

.doc-container h1 {
  text-align: center;
  font-size: 26px;
  color: #b22222; /* красный заголовок, чтобы соответствовало сайту */
  margin-bottom: 25px;
}

.doc-container h2 {
  text-align: left;
  color: #b22222;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

.doc-container p {
  text-align: left; /* выравнивание текста по левому краю */
  font-size: 16px;
  margin-bottom: 12px;
}

.doc-container a {
  color: #b22222;
  text-decoration: underline;
}

.doc-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
}

.doc-footer a {
  color: #b22222;
  text-decoration: none;
  margin: 0 10px;
}

.doc-footer a:hover {
  text-decoration: underline;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
  .doc-container {
    padding: 15px 20px;
  }
  .doc-container h1 {
    font-size: 22px;
  }
  .doc-container h2 {
    font-size: 16px;
  }
  .doc-container p {
    font-size: 14px;
  }
  .doc-footer a {
    margin: 0 6px;
    font-size: 14px;
  }
}