:root {
  --bg: #0a0a16;
  --surface: #141425;
  --surface2: #1e1e35;
  --surface3: #282845;
  --text: #f5f3ff;
  --body: #d8d3ee;
  --muted: #a9a3c8;
  --dim: #777292;
  --line: rgba(167,139,250,0.2);
  --violet: #7c6fff;
  --lavender: #a78bfa;
  --blue: #60a5fa;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #f472b6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  line-height: 1.72;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at 16% 8%, rgba(124,111,255,0.24), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(52,211,153,0.14), transparent 24%),
    linear-gradient(180deg, #0a0a16 0%, #101024 52%, #090914 100%);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  overflow-x: hidden;
}

a { color: var(--lavender); }

.skip-link {
  position: absolute;
  left: 18px;
  top: -52px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--violet);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(167,139,250,0.13);
  background: rgba(10,10,22,0.76);
  backdrop-filter: blur(18px);
}

.site-nav,
.page,
.footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-nav {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 3px;
  font-size: 14px;
}

.mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 10px 28px rgba(0,0,0,0.34);
}

.mark span { border-radius: 5px; }
.mark span:nth-child(1) { background: linear-gradient(145deg, #c4b5fd, #7c3aed); }
.mark span:nth-child(2) { background: linear-gradient(145deg, #93c5fd, #2563eb); }
.mark span:nth-child(3) { background: linear-gradient(145deg, #6ee7b7, #059669); }
.mark span:nth-child(4) { background: linear-gradient(145deg, #fde68a, #d97706); }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.language-select {
  min-height: 36px;
  border: 1px solid rgba(167,139,250,0.26);
  border-radius: 9px;
  color: var(--text);
  background: rgba(20,20,37,0.88);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.page { padding: 58px 0 76px; }

.page-hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(26px, 5vw, 52px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(124,111,255,0.16), rgba(20,20,37,0.82)),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.34);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 6vw, 58px);
  bottom: clamp(18px, 6vw, 48px);
  width: 104px;
  height: 104px;
  display: block;
  border-radius: 22px;
  opacity: 0.36;
  background:
    linear-gradient(145deg, #c4b5fd, #7c3aed) 0 0 / 48% 48% no-repeat,
    linear-gradient(145deg, #93c5fd, #2563eb) 100% 0 / 48% 48% no-repeat,
    linear-gradient(145deg, #6ee7b7, #059669) 0 100% / 48% 48% no-repeat,
    linear-gradient(145deg, #fde68a, #d97706) 100% 100% / 48% 48% no-repeat;
  box-shadow: 0 22px 60px rgba(0,0,0,0.36);
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lavender);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--emerald));
}

h1 {
  max-width: 720px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
  margin: 0;
}

.hero-lede {
  max-width: 690px;
  color: var(--body);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.62;
  margin: 18px 0 0;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 750;
}

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

.section {
  margin-top: 18px;
}

.summary-card,
.support-card,
.legal-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(20,20,37,0.8);
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.summary-card,
.support-card,
.contact-card {
  padding: 22px;
}

.summary-card strong,
.support-card strong,
.contact-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 7px;
}

.summary-card p,
.support-card p,
.contact-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 86px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(20,20,37,0.72);
}

.legal-toc strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.legal-toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.legal-toc a:hover { color: var(--text); }

.legal-card {
  padding: clamp(24px, 4vw, 44px);
}

.legal-card section + section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(167,139,250,0.13);
}

h2 {
  color: var(--lavender);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0 0 12px;
}

h3 {
  color: var(--text);
  font-size: 17px;
  margin: 22px 0 8px;
}

h4 {
  color: var(--blue);
  font-size: 15px;
  margin: 18px 0 6px;
}

p { margin: 0 0 14px; }

ul {
  padding-left: 20px;
  margin: 8px 0 18px;
}

li { margin-bottom: 8px; }
strong { color: var(--text); }

.note {
  border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0;
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  padding: 16px 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20,20,37,0.8);
  padding: 22px;
}

.faq-item h2 {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 8px;
}

.footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-brand {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-brand strong {
  display: block;
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 14px;
}

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

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .site-nav,
html[dir="rtl"] .footer { direction: rtl; }
html[dir="rtl"] .eyebrow::before { order: 2; }
html[dir="rtl"] .page-hero::after {
  right: auto;
  left: clamp(18px, 6vw, 58px);
}
html[dir="rtl"] ul { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .note {
  border-left: 0;
  border-right: 4px solid var(--amber);
  border-radius: 12px 0 0 12px;
}
html[dir="rtl"] .footer-links a { margin-right: 0; margin-left: 14px; }

@media (max-width: 860px) {
  .summary-grid,
  .support-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .page-hero::after {
    opacity: 0.32;
  }
}

@media (max-width: 620px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .page {
    padding-top: 36px;
  }

  .footer {
    display: block;
  }

  .footer-links {
    margin-top: 16px;
  }
}
