/* Юридические страницы и страница статуса.
   Отдельный файл: эти страницы открываются без оболочки приложения, в том
   числе когда основной сервис недоступен. */

html:has(body.legal) {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}
body.legal {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}

.legal__wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(32px + var(--safe-top)) 22px calc(60px + var(--safe-bottom));
}

.legal__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  padding: 8px 4px;
  transition: color .16s;
}
.legal__back:hover { color: var(--text); }

.legal h1 {
  font-size: 30px;
  font-weight: 680;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.legal h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 34px 0 12px;
}

.legal h3 {
  font-size: 15.5px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: var(--text-dim);
}

.legal__meta {
  color: var(--text-faint);
  font-size: 13.5px;
  margin: 0 0 26px;
}

.legal p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.legal strong { color: var(--text); font-weight: 600; }

/* Место, которое обязан заполнить оператор перед публикацией. */
.legal__fill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: #241c0c;
  color: #d9ab63;
  font-size: 14px;
}

.legal__notice {
  background: var(--surface);
  border-left: 3px solid #6b5828;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 15px 18px;
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 14px;
}
.legal__table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
.legal__table td {
  padding: 13px 12px;
  color: var(--text-dim);
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal__table td:first-child { color: var(--text); white-space: nowrap; }

.legal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal__footer a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 13.5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 2px;
  transition: color .16s;
}
.legal__footer a:hover { color: var(--text); }

/* ---------- страница статуса ---------- */

.status__loading {
  color: var(--text-faint);
  font-size: 15px;
  padding: 40px 0;
}

.status__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.status__title {
  font-size: 28px;
  font-weight: 680;
  letter-spacing: -0.03em;
  margin: 0;
}

.status__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}
.status__dot--up { background: #4ea87b; box-shadow: 0 0 10px rgba(78, 168, 123, .5); animation: statusPulse 2s ease-in-out infinite; }
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(78, 168, 123, .35); }
  50% { box-shadow: 0 0 14px rgba(78, 168, 123, .8); }
}
.status__live { font-size: 12px; color: var(--text-faint, #8b8b96); margin: -6px 0 14px; font-variant-numeric: tabular-nums; }
.status__dot--down { background: #d9534f; box-shadow: 0 0 10px rgba(217, 83, 79, .5); }
.status__dot--none { background: #3a3a44; }

.status__sub {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0 0 30px;
}

.status__services {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status__service {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.status__service-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.status__service-name {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.status__service-uptime {
  font-size: 14px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.status__bar {
  display: flex;
  gap: 2px;
  height: 30px;
  align-items: stretch;
}

.status__tick {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  transition: transform .12s;
}
.status__tick:hover { transform: scaleY(1.15); }
.status__tick--up { background: #3f8a66; }
.status__tick--warn { background: #b8873a; }
.status__tick--down { background: #b3453f; }
.status__tick--none { background: #1e1e24; }

.status__service-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.status__detail {
  margin-top: 10px;
  padding: 10px 12px;
  background: #170f0f;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: #d9827e;
  font-family: ui-monospace, monospace;
  word-break: break-word;
}

.status__legend {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-faint);
}

.status__note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
}

.status__section {
  font-size: 18px;
  font-weight: 650;
  margin: 38px 0 14px;
}

.status__incidents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.status__incident {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  border-left: 3px solid var(--line-strong);
}
.status__incident--outage { border-left-color: #b3453f; }
.status__incident--degraded { border-left-color: #b8873a; }
.status__incident--maintenance { border-left-color: #3f6a8a; }
.status__incident--resolved { border-left-color: #3f8a66; opacity: .75; }

.status__incident-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status__badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-dim);
  white-space: nowrap;
}

.status__incident-title {
  font-size: 14.5px;
  font-weight: 600;
}

.status__incident-body {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.55;
}

.status__incident-date {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .legal h1 { font-size: 25px; }
  .status__title { font-size: 23px; }
  .legal__table { font-size: 13px; }
  .legal__table td:first-child { white-space: normal; }
  .landing__cta { width: 100%; margin: 6px 0; }
}

.landing__hero { text-align: center; padding: 8px 0 28px; }
.landing__title { font-size: 40px; margin: 12px 0 8px; letter-spacing: .12em; }
.landing__tagline { color: var(--text-dim); line-height: 1.6; max-width: 520px; margin: 0 auto 22px; }
.landing__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  margin: 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.landing__cta--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.landing__section-title { margin: 28px 0 8px; }
.landing__section-lead, .landing__honest { color: var(--text-dim); line-height: 1.55; }
.landing__features { display: grid; gap: 12px; }
.landing__feature, .landing__luna {
  background: #121215;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 18px;
  padding: 16px;
}
.landing__ficon { color: var(--text-dim); margin-bottom: 8px; }
.landing__note { margin-top: 12px; color: var(--text-faint); font-size: 13px; }
@media (min-width: 700px) {
  .landing__features { grid-template-columns: 1fr 1fr; }
}

/* Возрастная маркировка по 436-ФЗ: видна на каждой публичной странице. */
.legal__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-dim);
}
