:root {
  --bg0: #070b14;
  --bg1: #0b1220;
  --card: rgba(14, 23, 40, 0.78);
  --card2: rgba(11, 18, 32, 0.62);
  --text: rgba(246, 249, 255, 0.98);
  --muted: rgba(246, 249, 255, 0.72);
  --subtle: rgba(246, 249, 255, 0.56);
  --line: rgba(255, 255, 255, 0.10);
  --line2: rgba(255, 255, 255, 0.14);
  --accent: #2b63ff;
  --accent2: #3b8cff;
  --lime: #c6ff2e; /* reference-inspired accent */
  --lime2: #b6ff00;
  --ok: #34d399;
  --bad: #f87171;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.52);
  --shadow2: 0 10px 24px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --radius2: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  /* Внешняя страница не должна прокручиваться: скроллится только список сообщений внутри .messages */
  overflow: hidden;
  overscroll-behavior: none;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1100px 640px at 12% -12%, rgba(43, 99, 255, 0.34), transparent 60%),
    radial-gradient(900px 560px at 92% -6%, rgba(59, 140, 255, 0.18), transparent 62%),
    radial-gradient(900px 560px at 55% 20%, rgba(198, 255, 46, 0.10), transparent 62%),
    radial-gradient(900px 700px at 50% 115%, rgba(255, 255, 255, 0.05), transparent 58%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  box-sizing: border-box;
  width: 100%;
  max-width: min(1120px, 100%);
  /* Жёстко фиксируем высоту оболочки к viewport — именно так ведут себя ChatGPT/Gemini:
     внешний контейнер не растёт от количества сообщений, скроллится только .messages внутри. */
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 22px 18px;
  padding-bottom: max(22px, env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-width: 0;
  /* Без min-height: 0 строка 1fr раздувается до min-content и тянет всю страницу. */
  min-height: 0;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  min-width: 0;
}

.topbar__left {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex: 0 1 auto;
  max-width: min(432px, 100%);
  min-width: 0;
}

.heroCard {
  width: 100%;
  max-width: min(432px, 100%);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  border-radius: 24px;
  border: 1px solid rgba(198, 255, 46, 0.22);
  background:
    radial-gradient(900px 240px at 10% 10%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(198, 255, 46, 0.98), rgba(182, 255, 0, 0.78));
  color: rgba(9, 12, 18, 0.95);
  padding: 16px 16px;
  box-shadow: 0 26px 70px rgba(198, 255, 46, 0.16), var(--shadow);
  position: relative;
  overflow: hidden;
}
.heroCard:after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  pointer-events: none;
  background: radial-gradient(900px 260px at 70% 0%, rgba(43, 99, 255, 0.22), transparent 55%);
  mix-blend-mode: multiply;
  opacity: 0.75;
}
.heroCard__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(9, 12, 18, 0.14);
  background: linear-gradient(135deg, rgba(198, 255, 46, 0.98), rgba(182, 255, 0, 0.78));
  box-shadow: 0 18px 40px rgba(9, 12, 18, 0.12);
  position: relative;
  overflow: hidden;
}
.logo__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(9, 12, 18, 0.82);
  top: 12px;
  left: 12px;
  box-shadow: 0 0 0 5px rgba(9, 12, 18, 0.10);
}
.logo__bar {
  position: absolute;
  height: 2px;
  width: 26px;
  left: 12px;
  top: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(9, 12, 18, 0.92), rgba(9, 12, 18, 0.0));
}

.topbar__titles { min-width: 0; }
.h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0.2px;
  font-weight: 700;
}

.p {
  margin: 4px 0 0;
  color: rgba(9, 12, 18, 0.78);
  font-size: 13px;
  line-height: 1.35;
  max-width: none;
}

.topbar__right { display: flex; align-items: center; }
.panel {
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 23, 40, 0.78), rgba(7, 11, 20, 0.62));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__inner {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.chatHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.38);
}
.chatHeader__hint {
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kbd {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(246, 249, 255, 0.78);
}
.chatHeader__meta { display: flex; gap: 8px; align-items: center; }
.iconBtn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 249, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow2);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  user-select: none;
}
.iconBtn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.06); border-color: var(--line2); }
.iconBtn:active { transform: translateY(0); }
.iconBtn:disabled { opacity: 0.55; cursor: not-allowed; }
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(43, 99, 255, 0.28);
  background: rgba(43, 99, 255, 0.10);
  color: rgba(246, 249, 255, 0.86);
  font-size: 11px;
  font-family: var(--mono);
}
.tag--muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 249, 255, 0.70);
}

.messages {
  padding: 18px 18px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  /* Грид-итем должен иметь право сжиматься до 0, иначе overflow внутри 1fr-строки не работает. */
  min-height: 0;
  /* Скролл-инерция остаётся внутри списка сообщений и не пробивается на body. */
  overscroll-behavior: contain;
}

/* Grid column must shrink or long text overflows horizontally (mobile clipping). */
.message__content {
  min-width: 0;
}

.message {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  margin: 0 0 14px;
}
.message__avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: rgba(246, 249, 255, 0.78);
  font-weight: 700;
  font-family: var(--mono);
  box-shadow: var(--shadow2);
}
.avatarImg {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}
.message__avatar--user {
  background: rgba(43, 99, 255, 0.12);
  border-color: rgba(43, 99, 255, 0.28);
}
.message__bubble {
  max-width: min(840px, 100%);
  padding: 12px 14px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow2);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  font-size: 14px;
  position: relative;
}
.message__bubble:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius2);
  pointer-events: none;
  opacity: 0.55;
  background: linear-gradient(135deg, rgba(43, 99, 255, 0.35), rgba(198, 255, 46, 0.10), rgba(255, 255, 255, 0.05));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  box-sizing: border-box;
  border: 1px solid transparent;
}
.message--user { grid-template-columns: 1fr 40px; }
.message--user .message__bubble {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(43, 99, 255, 0.16), rgba(11, 18, 32, 0.06));
  border-color: rgba(43, 99, 255, 0.30);
}
.message--user .message__avatar { order: 2; }
.message--user .message__content { order: 1; }

.message__meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(246, 249, 255, 0.55);
  font-size: 11px;
  font-family: var(--mono);
}

.typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(246, 249, 255, 0.55);
  animation: t 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.12s; opacity: 0.78; }
.typing span:nth-child(3) { animation-delay: 0.24s; opacity: 0.62; }
@keyframes t {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 0.95; }
}

.composer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: transparent;
}

/* Одна «капсула» как в ChatGPT: без вложенной рамки вокруг textarea */
.composerBar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  max-width: 100%;
  padding: 6px 8px 6px 10px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.composerBar:focus-within {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.composerIconBtn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 249, 255, 0.78);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background 0.12s ease;
}
.composerIconBtn:hover {
  background: rgba(255, 255, 255, 0.06);
}
.composerIconBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.composerInput {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  margin: 0;
  padding: 10px 6px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  min-height: 44px;
  max-height: 160px;
}
.composerInput::placeholder {
  color: rgba(246, 249, 255, 0.42);
}

.composerSend {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  padding: 0;
  border: 1px solid rgba(182, 255, 0, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(214, 255, 120, 0.98), rgba(198, 255, 46, 0.92), rgba(182, 220, 60, 0.88));
  color: rgba(9, 12, 18, 0.88);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 20px rgba(198, 255, 46, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.composerSend:hover:not(:disabled) {
  transform: scale(1.05);
  filter: brightness(1.03);
  box-shadow: 0 8px 26px rgba(198, 255, 46, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.composerSend:active:not(:disabled) {
  transform: scale(0.97);
}
.composerSend:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
}
.composerSend__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.attachmentRow {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.attachmentPill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(246, 249, 255, 0.82);
  max-width: 100%;
}
.attachmentName {
  max-width: min(520px, 72vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachmentRemove {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(246, 249, 255, 0.80);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.attachmentRemove:hover { background: rgba(255, 255, 255, 0.08); }

.footer {
  padding: 6px 4px 0;
}
.disclaimer {
  margin: 0;
  color: rgba(246, 249, 255, 0.62);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 720px) {
  .shell {
    padding: 14px 12px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }
  .p {
    display: none;
  }
  .message {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .message__avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .message--user {
    grid-template-columns: minmax(0, 1fr) 34px;
  }
}

/* Phones: Alice-like breathing room, no desktop keyboard hints, stable composer */
@media (max-width: 640px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  .h1 {
    font-size: 17px;
    letter-spacing: 0;
  }

  .heroCard {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .logo {
    width: 38px;
    height: 38px;
  }

  .panel {
    border-radius: 16px;
  }

  /* Touch UX: hide Enter/Shift hints (meaningless on phones). */
  .chatHeader__hint {
    display: none;
  }

  .chatHeader {
    padding: 10px 12px;
  }

  .messages {
    padding: 12px 10px 10px;
  }

  .message {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }

  .message--user {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .message__avatar {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .message__bubble {
    padding: 11px 12px;
    font-size: 15px;
    line-height: 1.5;
  }

  .composer {
    padding: 10px 8px 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .composerBar {
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    width: 100%;
    max-width: 100%;
  }

  .composerIconBtn {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .composerInput {
    /* 16px+ предотвращает авто-зум поля ввода в iOS Safari */
    font-size: 16px;
    padding: 8px 4px;
    min-height: 44px;
  }

  .composerSend {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .footerLegals {
    flex-direction: column;
    gap: 8px;
  }

  .disclaimer {
    font-size: 11px;
    padding: 0 4px;
  }
}

/* Cookies — справа от hero-карточки в шапке */
.cookieBanner {
  flex: 0 1 300px;
  align-self: stretch;
  min-width: 220px;
  max-width: 320px;
  position: static;
  border-radius: 20px;
  border: 1px solid rgba(198, 255, 46, 0.22);
  background: linear-gradient(165deg, rgba(14, 23, 40, 0.94) 0%, rgba(7, 11, 20, 0.9) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  min-height: 0;
}
.cookieBanner__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(246, 249, 255, 0.92);
  margin-bottom: 2px;
}
.cookieBanner__body {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(246, 249, 255, 0.72);
}
.cookieBanner__text {
  min-width: 0;
  flex: 0 0 auto;
}
.cookieBanner__link {
  color: rgba(198, 255, 46, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 255, 46, 0.35);
}
.cookieBanner__link:hover { border-bottom-color: rgba(198, 255, 46, 0.75); }
.cookieBanner__actions {
  display: flex;
  justify-content: stretch;
  gap: 10px;
  flex-shrink: 0;
  margin-top: auto;
}
.cookieBanner__btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(198, 255, 46, 0.98), rgba(182, 255, 0, 0.72));
  color: rgba(9, 12, 18, 0.92);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(198, 255, 46, 0.18);
  transition: transform 120ms ease, filter 120ms ease;
}
.cookieBanner__btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.cookieBanner__btn:active { transform: translateY(0); }
.cookieBanner__actions--split .cookieBanner__btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .cookieBanner {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    min-width: 0;
  }
}

/* Footer — юридические ссылки */
.footerLegals {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
}
.footerLegals a {
  color: rgba(198, 255, 46, 0.92);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(198, 255, 46, 0.35);
}
.footerLegals a:hover { border-bottom-color: rgba(198, 255, 46, 0.75); }

.cookieBanner__actions--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
}
.cookieBanner__btn--ghost {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 249, 255, 0.88);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, border-color 120ms ease;
}
.cookieBanner__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(198, 255, 46, 0.35);
}

/* Юридические страницы */
.legalShell {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.legalBack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(198, 255, 46, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 255, 46, 0.35);
}
.legalBack:hover { border-bottom-color: rgba(198, 255, 46, 0.75); }
.legalCard {
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 23, 40, 0.85), rgba(7, 11, 20, 0.72));
  box-shadow: var(--shadow);
  padding: 26px 22px 30px;
}
.legalCard h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.25;
  color: rgba(246, 249, 255, 0.98);
}
.legalCard .legalLead {
  margin: 0 0 22px;
  color: rgba(246, 249, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}
.legalCard h2 {
  margin: 26px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(246, 249, 255, 0.95);
}
.legalCard h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 650;
  color: rgba(246, 249, 255, 0.88);
}
.legalCard p {
  margin: 0 0 10px;
  color: rgba(246, 249, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}
.legalCard ol.legalOl {
  margin: 0 0 12px;
  padding-left: 22px;
  color: rgba(246, 249, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}
.legalCard ol.legalOl > li { margin-bottom: 8px; }
.legalCard ul {
  margin: 8px 0 12px;
  padding-left: 20px;
  color: rgba(246, 249, 255, 0.76);
  font-size: 14px;
  line-height: 1.5;
}
.legalCard ul li { margin-bottom: 6px; }
.legalCard .legalTableWrap {
  overflow-x: auto;
  margin: 12px 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.legalCard table.legalTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.legalCard table.legalTable th,
.legalCard table.legalTable td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: rgba(246, 249, 255, 0.78);
}
.legalCard table.legalTable th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: rgba(246, 249, 255, 0.88);
}
.legalCard a {
  color: rgba(198, 255, 46, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 255, 46, 0.35);
}
.legalCard a:hover { border-bottom-color: rgba(198, 255, 46, 0.75); }

@media (max-width: 720px) {
  .legalCard { padding: 20px 16px 24px; }
  .legalCard h1 { font-size: 18px; }
}

