:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --bg-soft: #12121c;
  --panel: #171724;
  --panel-2: #1d1d2d;
  --text: #f8f7ff;
  --muted: #aaa8bb;
  --line: rgba(255, 255, 255, 0.11);
  --purple: #7b5cff;
  --purple-strong: #6f4bf3;
  --purple-soft: #b7a8ff;
  --mint: #42d392;
  --amber: #ffb84d;
  --danger: #ff7a7a;
  --max: 1180px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(111, 75, 243, 0.22), transparent 29rem),
    radial-gradient(circle at 90% 22%, rgba(66, 211, 146, 0.09), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

[data-ru] {
  display: none !important;
}

html[data-lang="ru"] [data-en] {
  display: none !important;
}

html[data-lang="ru"] [data-ru] {
  display: inline !important;
}

.draft-ribbon {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 18px;
  background: #2a2034;
  color: #e9cfff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.legal-draft {
  position: relative;
  z-index: 5;
  background: #5f4210;
  color: #fff1c9;
}

.site-header,
.legal-v2-header {
  width: min(calc(100% - 32px), var(--max));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.site-brand img {
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(111, 75, 243, 0.32);
}

.site-brand span {
  display: grid;
  line-height: 1.15;
}

.site-brand b {
  letter-spacing: 0.06em;
}

.site-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(123, 92, 255, 0.14);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  width: 44px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, #856aff, #6240e8);
  box-shadow: 0 14px 34px rgba(111, 75, 243, 0.28);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(111, 75, 243, 0.36);
}

.button-small {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 13px;
  font-size: 0.8rem;
}

.button-large {
  min-height: 56px;
  padding: 15px 24px;
  border-radius: 18px;
  font-size: 1rem;
}

.button-mint {
  background: linear-gradient(135deg, #4bdea0, #1fae73);
  box-shadow: 0 14px 34px rgba(66, 211, 146, 0.2);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple-soft);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hub-hero,
.web-hero {
  width: min(calc(100% - 32px), var(--max));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 64px;
  padding: 72px 0 86px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy {
  min-width: 0;
}

.web-hero .hero-copy h1 {
  font-size: clamp(3rem, 5.3vw, 5rem);
}

.hero-copy h1 em {
  color: var(--purple-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lead {
  max-width: 710px;
  margin: 26px 0 0;
  color: #cbc9d6;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8d6e2;
  font-size: 0.83rem;
}

.mira-orbit {
  position: relative;
  width: min(42vw, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.mira-orbit::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.36), rgba(123, 92, 255, 0.04) 58%, transparent 70%);
  filter: blur(1px);
}

.mira-orbit > img {
  position: relative;
  z-index: 2;
  width: 38%;
  border-radius: 32%;
  box-shadow: 0 24px 90px rgba(111, 75, 243, 0.42);
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(183, 168, 255, 0.25);
  border-radius: 50%;
}

.orbit-one {
  inset: 12%;
}

.orbit-two {
  inset: 1%;
  border-style: dashed;
  opacity: 0.55;
}

.orbit-chip {
  position: absolute;
  z-index: 3;
  min-width: 128px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(24, 24, 38, 0.94);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}

.chip-photo {
  top: 16%;
  right: 1%;
}

.chip-voice {
  bottom: 18%;
  left: 0;
}

.chip-goal {
  right: 2%;
  bottom: 4%;
}

.choice-section,
.pricing,
.smart-section,
.final-cta,
.legal-center-main {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.choice-section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2,
.smart-section h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.03rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-height: 540px;
  padding: clamp(26px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(123, 92, 255, 0.18), rgba(23, 23, 36, 0.94) 44%);
  box-shadow: var(--shadow);
}

.product-telegram {
  background: linear-gradient(160deg, rgba(66, 211, 146, 0.16), rgba(23, 23, 36, 0.94) 44%);
}

.product-tag {
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.product-icon {
  width: 62px;
  height: 62px;
  margin: 30px 0 20px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(123, 92, 255, 0.19);
  font-size: 1.7rem;
}

.product-telegram .product-icon {
  background: rgba(66, 211, 146, 0.16);
}

.product-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.product-card > p {
  color: var(--muted);
}

.product-card ul {
  margin: 18px 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.product-card li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--purple-soft);
  font-weight: 900;
}

.product-telegram li::before {
  color: var(--mint);
}

.product-card .button {
  margin-top: auto;
}

.separate-note,
.pricing-note,
.microcopy {
  color: var(--muted);
  font-size: 0.78rem;
}

.separate-note {
  margin: 18px 4px 0;
  text-align: center;
}

.trust-strip {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 92px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.trust-strip > div {
  min-height: 112px;
  padding: 20px;
  display: grid;
  align-content: center;
  border-right: 1px solid var(--line);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip b {
  color: var(--purple-soft);
  font-size: 1.3rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.text-link {
  color: #d8d2ff;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.phone-scene {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-scene::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.3), transparent 68%);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(88vw, 350px);
  min-height: 670px;
  padding: 14px 18px 24px;
  border: 7px solid #272737;
  border-radius: 46px;
  background: #f8f7ff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  color: #1c1a25;
  transform: rotate(2.5deg);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 3px 20px;
  font-size: 0.7rem;
}

.phone-greeting {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}

.phone-greeting small {
  color: #7d788b;
}

.phone-greeting strong {
  font-size: 1.3rem;
}

.meal-rings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.meal-rings > span {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.meal-rings i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid #dcd8ef;
  border-top-color: #7655f3;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 12px rgba(49, 38, 92, 0.1);
  font-size: 1.28rem;
  font-style: normal;
  font-weight: 800;
}

.meal-rings small {
  font-size: 0.55rem;
  font-weight: 700;
}

.day-card {
  margin-top: 22px;
  padding: 16px;
  display: grid;
  gap: 9px;
  border: 1px solid #e4e1ee;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(48, 36, 94, 0.08);
}

.day-card span {
  font-size: 0.74rem;
}

.day-card span b {
  font-size: 1.3rem;
}

.day-card i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e6f2;
}

.day-card u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a59f8, #ab91ff);
}

.day-card small {
  color: #777184;
}

.mira-message {
  margin-top: 14px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 18px;
  background: #eeeaff;
}

.mira-message img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.mira-message p {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 0.67rem;
}

.mira-message b {
  color: #6542de;
}

.phone > button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 15px;
  background: #6f4bf3;
  color: #fff;
  font-weight: 800;
}

.core-three {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.core-three article {
  position: relative;
  min-height: 430px;
  padding: 52px 34px;
  border-right: 1px solid var(--line);
}

.core-three article:last-child {
  border-right: 0;
}

.step-num {
  color: #676474;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-glyph {
  width: 64px;
  height: 64px;
  margin: 58px 0 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(123, 92, 255, 0.13);
  font-size: 1.7rem;
}

.core-three h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.core-three p {
  color: var(--muted);
}

.smart-section {
  padding: 110px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 70px;
}

.smart-section .section-heading {
  margin: 0;
}

.chat-demo {
  padding: clamp(20px, 4vw, 38px);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(123, 92, 255, 0.14), rgba(22, 22, 34, 0.96));
  box-shadow: var(--shadow);
}

.bubble {
  max-width: 87%;
  padding: 15px 17px;
  border-radius: 19px;
  font-size: 0.9rem;
}

.bubble-user {
  justify-self: end;
  background: #6f4bf3;
}

.bubble-mira {
  display: grid;
  gap: 7px;
  background: #27243a;
}

.bubble-mira b {
  color: var(--purple-soft);
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-chips span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8d6e2;
  font-size: 0.73rem;
}

.pricing {
  padding: 100px 0;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-grid article {
  position: relative;
  min-height: 260px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.price-grid small {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.price-grid strong {
  margin: 16px 0 2px;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.price-grid span {
  color: var(--muted);
}

.price-featured {
  border-color: rgba(183, 168, 255, 0.55) !important;
  background: linear-gradient(145deg, rgba(123, 92, 255, 0.28), var(--panel)) !important;
}

.price-featured i {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(123, 92, 255, 0.24);
  color: #d7ceff;
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.safety-panel {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto 100px;
  padding: clamp(26px, 5vw, 52px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  border: 1px solid rgba(255, 184, 77, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(255, 184, 77, 0.11), rgba(24, 24, 36, 0.94));
}

.safety-panel > div {
  align-self: center;
}

.safety-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 184, 77, 0.32);
  border-radius: 18px;
  color: #ffd69b;
  font-weight: 900;
}

.safety-panel h2 {
  margin: 20px 0 0;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.safety-panel ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.safety-panel li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: #d4d1dd;
}

.safety-panel li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--amber);
}

.safety-panel .text-link {
  grid-column: 2;
}

.final-cta {
  margin-bottom: 96px;
  padding: 80px clamp(24px, 6vw, 80px);
  display: grid;
  justify-items: center;
  border: 1px solid rgba(183, 168, 255, 0.3);
  border-radius: 36px;
  background: radial-gradient(circle at 50% -20%, rgba(123, 92, 255, 0.4), transparent 55%), var(--panel);
  text-align: center;
}

.final-cta img {
  margin-bottom: 26px;
  border-radius: 28px;
}

.final-cta p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 42px 0 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer b {
  color: var(--text);
}

.site-footer p {
  margin: 5px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 15px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  grid-column: 1 / -1;
}

/* Legal v2 */

.legal-v2,
.legal-center {
  background: #0f1017;
}

.legal-v2-header {
  justify-content: space-between;
}

.legal-layout {
  width: min(calc(100% - 32px), 1260px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  padding: 34px 0;
  display: grid;
  gap: 5px;
  overflow: auto;
}

.legal-sidebar p {
  margin: 0 0 8px;
  color: #777482;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.legal-sidebar a {
  padding: 9px 11px;
  border-radius: 10px;
  color: #aaa7b4;
  font-size: 0.76rem;
  line-height: 1.3;
  text-decoration: none;
}

.legal-sidebar a:hover,
.legal-sidebar a[aria-current="page"] {
  background: rgba(123, 92, 255, 0.14);
  color: #fff;
}

.legal-document {
  max-width: 860px;
  padding: 52px 0 96px;
}

.legal-back-v2 {
  color: var(--purple-soft);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.legal-kicker {
  margin: 44px 0 10px;
  color: var(--purple-soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.legal-document h1,
.legal-center-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.document-meta {
  margin: 24px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-meta span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
}

.legal-warning {
  margin: 24px 0 42px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 184, 77, 0.32);
  border-radius: 16px;
  background: rgba(255, 184, 77, 0.08);
  color: #eadfcd;
}

.legal-warning b {
  color: #ffd696;
}

.legal-warning p {
  margin: 6px 0 0;
}

.legal-prose {
  color: #d2cfda;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.78;
}

.legal-prose h2 {
  margin: 56px 0 17px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #fff;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 1.52rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-prose p {
  margin: 0 0 18px;
}

.legal-prose a {
  color: #c6baff;
  text-underline-offset: 3px;
}

.legal-prose .small-note {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.78rem;
}

.legal-form {
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: #ddd9e8;
  font: 0.78rem/1.75 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.legal-contact {
  margin-top: 64px;
  padding: 24px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-contact b {
  color: var(--text);
}

.legal-table-wrap {
  max-width: 100%;
  margin: 26px 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.legal-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  background: var(--panel);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
}

.legal-table th,
.legal-table td {
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.legal-table th {
  color: #fff;
  background: rgba(123, 92, 255, 0.15);
}

.legal-center-main {
  padding: 80px 0 110px;
}

.legal-center-hero {
  max-width: 880px;
}

.legal-center-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.03rem;
}

.legal-card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.legal-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.legal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 168, 255, 0.5);
}

.legal-card small {
  color: var(--purple-soft);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.legal-card h2 {
  margin: 24px 0 10px;
  font-size: 1.35rem;
  line-height: 1.13;
  letter-spacing: -0.03em;
}

.legal-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-card span {
  margin-top: auto;
  color: var(--purple-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.contract-order {
  margin-top: 70px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.contract-order h2 {
  margin-top: 0;
}

.contract-order ol {
  margin-bottom: 0;
  color: #cfccd8;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hub-hero,
  .web-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 58px;
  }

  .mira-orbit {
    width: min(88vw, 480px);
  }

  .phone-scene {
    padding-top: 28px;
  }

  .core-three,
  .smart-section,
  .safety-panel {
    grid-template-columns: 1fr;
  }

  .core-three article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .core-three article:last-child {
    border-bottom: 0;
  }

  .feature-glyph {
    margin-top: 34px;
  }

  .safety-panel .text-link {
    grid-column: 1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .legal-sidebar p {
    grid-column: 1 / -1;
  }

  .legal-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .draft-ribbon {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.61rem;
    line-height: 1.35;
    letter-spacing: 0.06em;
  }

  .site-header,
  .legal-v2-header {
    min-height: 70px;
    gap: 12px;
  }

  .site-brand small,
  .header-actions .button {
    display: none;
  }

  .hero-copy h1,
  .web-hero .hero-copy h1 {
    font-size: clamp(2.25rem, 10.8vw, 3.4rem);
    letter-spacing: -0.055em;
  }

  .hub-hero,
  .web-hero {
    min-height: auto;
    padding: 52px 0 68px;
  }

  .hero-actions {
    align-items: stretch;
    gap: 14px;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
  }

  .hero-actions .text-link {
    padding: 4px 2px;
  }

  .product-grid,
  .price-grid,
  .trust-strip,
  .legal-card-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 500px;
  }

  .trust-strip > div {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  .smart-section,
  .pricing,
  .choice-section {
    padding: 72px 0;
  }

  .phone {
    transform: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-note {
    grid-column: 1;
  }

  .legal-sidebar {
    display: flex;
    overflow-x: auto;
    padding: 18px 0;
  }

  .legal-sidebar p {
    display: none;
  }

  .legal-sidebar a {
    min-width: 150px;
    flex: 0 0 auto;
  }

  .legal-document {
    padding-top: 28px;
  }

  .legal-document h1,
  .legal-center-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .legal-prose {
    font-size: 0.96rem;
  }

  .legal-center-main {
    padding-top: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
