/* Юридические страницы — Токены.Стор. Брендовые цвета: #003388 (синий), #D60017 (красный).
   Layout-фиксы вынесены в /assets/layout.css. */

.legal-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fb;
  color: #1a1a1a;
  line-height: 1.6;
}

.legal-page header.legal-header {
  background: #003388;
  color: #fff;
  padding: 16px 24px;
}

.legal-page header.legal-header a.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-page header.legal-header a.brand:hover { text-decoration: underline; }

.legal-page main {
  max-width: 860px;
  margin: 32px auto 48px;
  padding: 32px 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 51, 136, 0.06);
}

.legal-page h1 {
  color: #003388;
  font-size: 28px;
  margin: 0 0 24px;
  border-bottom: 3px solid #D60017;
  padding-bottom: 12px;
}

.legal-page h2 {
  color: #003388;
  font-size: 20px;
  margin: 32px 0 12px;
}

.legal-page article {
  white-space: pre-wrap;
  font-size: 15px;
}

.legal-page article a { color: #003388; }

.legal-page footer.legal-footer {
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 16px 28px;
  font-size: 13px;
  color: #555;
  text-align: center;
}

.legal-page footer.legal-footer p { margin: 4px 0; }
.legal-page footer.legal-footer a { color: #003388; margin: 0 6px; }

@media (max-width: 600px) {
  .legal-page main { margin: 16px; padding: 20px 16px; border-radius: 4px; }
  .legal-page h1 { font-size: 22px; }
}

/* === Cookie consent banner === */

#tokeny-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #003388;
  color: #fff;
  padding: 16px 20px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

#tokeny-cookie-banner.tcb-visible { display: block; }

#tokeny-cookie-banner .tcb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

#tokeny-cookie-banner .tcb-text { flex: 1 1 320px; }
#tokeny-cookie-banner .tcb-text a { color: #fff; text-decoration: underline; }
#tokeny-cookie-banner .tcb-actions { display: flex; gap: 10px; flex-wrap: wrap; }

#tokeny-cookie-banner button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 600;
}

#tokeny-cookie-banner .tcb-accept {
  background: #D60017;
  color: #fff;
}
#tokeny-cookie-banner .tcb-accept:hover { background: #b00012; }

#tokeny-cookie-banner .tcb-decline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
#tokeny-cookie-banner .tcb-decline:hover { background: rgba(255, 255, 255, 0.12); }

@media (max-width: 600px) {
  #tokeny-cookie-banner .tcb-inner { flex-direction: column; align-items: stretch; }
  #tokeny-cookie-banner .tcb-actions { justify-content: stretch; }
  #tokeny-cookie-banner .tcb-actions button { flex: 1; }
}
