/* =====================================================================
   legal-pages.css — the information pages: terms of use, FAQ, service status
   (same dark look as the privacy policy / accessibility statement; used with services.css)
   ===================================================================== */
.lg-body { max-width: 820px; margin: 0 auto; padding: 0 24px 72px; }
.lg-updated { font-size: 13px; color: #9aa0bf; margin: 0 0 22px; }
.lg-body h2 {
  font-size: 18px; font-weight: 800; color: #e9e3f7;
  margin: 40px 0 10px; padding-bottom: 8px; scroll-margin-top: 90px;
  border-bottom: 1px solid rgba(155, 93, 229, .22);
}
.lg-body h3 { font-size: 15.5px; font-weight: 700; color: #d9d2ef; margin: 22px 0 6px; }
.lg-body p, .lg-body li { font-size: 15px; line-height: 1.85; color: #c8cde8; }
.lg-body ul, .lg-body ol { padding-inline-start: 22px; margin: 8px 0 16px; }
.lg-body li { margin-bottom: 6px; }
.lg-body a { color: #c4a1f5; text-decoration: underline; text-underline-offset: 2px; }
.lg-body a:hover { color: #e2ccff; }
.lg-body strong { color: #efeaf9; font-weight: 700; }
.lg-note {
  background: rgba(155, 93, 229, .09); border-inline-start: 3px solid #9b5de5;
  border-radius: 6px; padding: 12px 16px; margin: 14px 0; font-size: 14.5px; color: #d6d2ea; line-height: 1.8;
}
.lg-warn {
  background: rgba(245, 158, 11, .08); border-inline-start: 3px solid #f59e0b;
  border-radius: 6px; padding: 12px 16px; margin: 14px 0; font-size: 14.5px; color: #f3e3c3; line-height: 1.8;
}
.lg-fill { background: rgba(250, 204, 21, .16); color: #fde68a; border-radius: 4px; padding: 0 4px; font-weight: 700; }
.lg-body :focus-visible { outline: 2px solid #c4a1f5; outline-offset: 3px; border-radius: 4px; }

/* table of contents */
.lg-toc { background: rgba(255, 255, 255, .03); border: 1px solid rgba(155, 93, 229, .18); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; }
.lg-toc h2 { margin: 0 0 8px; border: 0; padding: 0; font-size: 15px; }
.lg-toc ol { columns: 2; column-gap: 28px; margin: 0; padding-inline-start: 20px; }
.lg-toc li { font-size: 14px; margin-bottom: 4px; break-inside: avoid; }
.lg-toc a { text-decoration: none; color: #c8cde8; }
.lg-toc a:hover { color: #e2ccff; text-decoration: underline; }
@media (max-width: 640px) { .lg-toc ol { columns: 1; } }

/* language: one page, two languages */
html[dir="rtl"] .lg-en { display: none !important; }
html[dir="ltr"] .lg-he { display: none !important; }

/* ── FAQ ── */
.faq-cat { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: #b38ef0; margin: 34px 0 10px; text-transform: uppercase; }
.faq-item { border: 1px solid rgba(155, 93, 229, .2); border-radius: 14px; background: rgba(255, 255, 255, .025); margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 15px 18px; display: flex; align-items: center; gap: 12px;
  font-size: 15.5px; font-weight: 700; color: #ece7f8; line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; margin-inline-start: auto; flex: none; width: 10px; height: 10px;
  border-inline-end: 2px solid #b38ef0; border-bottom: 2px solid #b38ef0; transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover { background: rgba(155, 93, 229, .07); }
.faq-item summary:focus-visible { outline: 2px solid #c4a1f5; outline-offset: -2px; }
.faq-a { padding: 0 18px 16px; }
.faq-a p, .faq-a li { font-size: 14.5px; }
.faq-search { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1.5px solid rgba(155, 93, 229, .35); background: rgba(255, 255, 255, .04); color: #f1edfa; font: 500 15px/1.4 Heebo, sans-serif; padding: 12px 16px; margin: 0 0 6px; }
.faq-search::placeholder { color: #9aa0bf; }
.faq-search:focus { outline: none; border-color: #c4a1f5; box-shadow: 0 0 0 3px rgba(196, 161, 245, .2); }
.faq-empty { color: #9aa0bf; font-size: 14.5px; margin: 18px 0; }

/* ── service status ── */
.st-banner { display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 18px 20px; margin: 0 0 22px; border: 1px solid; }
.st-banner .st-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.st-banner b { font-size: 17px; }
.st-banner span { display: block; font-size: 13.5px; opacity: .85; margin-top: 2px; }
.st-ok { background: rgba(34, 197, 94, .09); border-color: rgba(34, 197, 94, .35); color: #bbf7d0; }
.st-ok .st-dot { background: #22c55e; box-shadow: 0 0 0 6px rgba(34, 197, 94, .15); }
.st-degraded { background: rgba(245, 158, 11, .09); border-color: rgba(245, 158, 11, .4); color: #fde68a; }
.st-degraded .st-dot { background: #f59e0b; box-shadow: 0 0 0 6px rgba(245, 158, 11, .15); }
.st-down { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .45); color: #fecaca; }
.st-down .st-dot { background: #ef4444; box-shadow: 0 0 0 6px rgba(239, 68, 68, .15); }
.st-unknown { background: rgba(148, 163, 184, .08); border-color: rgba(148, 163, 184, .3); color: #cbd5e1; }
.st-unknown .st-dot { background: #94a3b8; }
.st-list { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(155, 93, 229, .2); border-radius: 16px; overflow: hidden; }
.st-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(155, 93, 229, .12); margin: 0; }
.st-list li:last-child { border-bottom: 0; }
.st-name { flex: 1; min-width: 0; color: #ece7f8; font-weight: 600; font-size: 15px; }
.st-name small { display: block; color: #9aa0bf; font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.st-pill { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.st-pill.ok { background: rgba(34, 197, 94, .14); color: #86efac; }
.st-pill.degraded { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.st-pill.down { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.st-pill.unknown { background: rgba(148, 163, 184, .14); color: #cbd5e1; }
.st-meta { color: #9aa0bf; font-size: 13px; margin: 12px 2px 0; }
.st-refresh { background: none; border: 1px solid rgba(196, 161, 245, .4); color: #e2ccff; border-radius: 999px; padding: 6px 14px; font: 600 13px Heebo, sans-serif; cursor: pointer; margin-inline-start: 8px; }
.st-refresh:hover { background: rgba(196, 161, 245, .12); }

@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
