*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #080c14;
  --surface:   #0d1424;
  --card:      rgba(255,255,255,0.04);
  --card-strong: rgba(255,255,255,0.06);
  --border:    rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --primary:   #6366f1;
  --cyan:      #06b6d4;
  --green:     #22c55e;
  --amber:     #f59e0b;
  --rose:      #f43f5e;
  --text:      #f1f5f9;
  --muted:     #64748b;
  --soft:      rgba(241,245,249,0.72);
  --link:      #818cf8;
  --legal-display-font: 'Syne', sans-serif;
  --legal-page-max: 900px;
  --legal-page-title-letter-spacing: -0.03em;
  --legal-page-meta-gap: 12px 20px;
  --legal-toc-title-weight: 700;
  --legal-section-header-margin-bottom: 22px;
  --legal-policy-section-animation-duration: .45s;
  --legal-policy-ul-margin: 14px 0;
  --legal-fade-distance: 14px;
  --legal-footer-gap: 12px;
  --legal-footer-links-gap: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(6,182,212,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 34% 24% at 50% 0%, rgba(244,63,94,0.035) 0%, transparent 65%),
    var(--bg);
}
.bg-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 60px 60px;
}

.site-header:not(.site-header--public) {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,20,0.86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner--legal-doc {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-inner--legal-doc .header-back {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.header-inner--legal-doc .header-back:hover { color: var(--text); text-decoration: none; }

.lead-text {
  max-width: 760px;
  color: rgba(241,245,249,0.78);
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.intro-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.intro-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 8px;
}
.intro-card p {
  font-size: 0.84rem;
  color: var(--soft);
  line-height: 1.65;
}

.muted-note { color: var(--muted); font-size: 0.86rem; }
strong { color: var(--text); font-weight: 650; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.subsection { margin: 26px 0; }
.subsection-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.policy-section,
.policy-p,
.policy-ol,
.policy-ul,
.provider-card,
.faq-item,
.right-item,
.placeholder-card,
.contact-card,
.toc-box,
.toc-list,
.table-scroll,
.ui-table {
  min-width: 0;
  max-width: 100%;
}

.policy-section {
  overflow: visible;
}

.policy-p,
.policy-ol > li,
.policy-ul > li,
.provider-card p,
.faq-item p,
.right-item,
.placeholder-card,
.contact-desc,
.contact-email,
.toc-list a {
  overflow-wrap: anywhere;
  word-break: normal;
}

.policy-ol {
  list-style: none;
  counter-reset: policy-step;
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
}

.policy-ol > li {
  counter-increment: policy-step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 15px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 14px;
  color: rgba(241,245,249,0.82);
  font-size: 0.91rem;
  line-height: 1.72;
}

.policy-ol > li::before {
  content: counter(policy-step);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(129,140,248,0.11);
  border: 1px solid rgba(129,140,248,0.22);
  color: rgba(199,210,254,0.96);
  font-family: var(--legal-display-font);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.policy-ol__content {
  min-width: 0;
  display: block;
}

.policy-ol > li strong {
  display: inline;
  margin-right: 3px;
}

.policy-ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: var(--legal-policy-ul-margin);
  padding: 0;
}

.policy-ul > li {
  position: relative;
  padding: 12px 14px 12px 38px;
  background: rgba(255,255,255,0.032);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 13px;
  color: rgba(241,245,249,0.82);
  font-size: 0.91rem;
  line-height: 1.68;
}

.policy-ul > li::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(129,140,248,0.78);
  box-shadow: 0 0 0 4px rgba(129,140,248,0.11);
}

.callout,
.notice-card {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 20px 0;
}

.placeholder-card {
  border-radius: 14px;
  padding: 17px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 20px 0;
}
.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.callout-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 1px;
  background: rgba(255,255,255,0.045);
}
.callout-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.callout-icon--info {
  color: rgba(196,201,255,0.95);
  background: rgba(99,102,241,0.095);
  border-color: rgba(129,140,248,0.22);
}
.callout-icon--warn {
  color: rgba(255,211,138,0.95);
  background: rgba(245,158,11,0.09);
  border-color: rgba(245,158,11,0.2);
}
.callout-body { flex: 1; min-width: 0; }
.callout-title,
.notice-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.92rem;
}
.callout-body p,
.notice-card p { margin: 0; }
.callout-info,
.notice-card {
  color: #c4c9ff;
}
.callout-warn {
  color: rgba(255,211,138,0.92);
}
.placeholder-card {
  background: rgba(255,255,255,0.035);
  border: 1px dashed var(--border-strong);
  color: var(--soft);
  display: grid;
  gap: 6px;
}

.provider-grid,
.rights-grid,
.faq-list {
  display: grid;
  gap: 14px;
}
.provider-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}
.provider-card,
.faq-item,
.right-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.provider-card {
  padding: 18px;
}
.provider-card h3,
.faq-item h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.provider-card p,
.faq-item p {
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.68;
}
.rights-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 20px;
}
.right-item {
  padding: 13px 15px;
  color: rgba(241,245,249,0.86);
  font-size: 0.9rem;
}
.faq-list { margin-top: 16px; }
.faq-item { padding: 18px 20px; }

.contact-card {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  color: rgba(199,210,254,0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info { flex: 1; min-width: 220px; }
.contact-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}
.contact-desc { font-size: 0.84rem; color: var(--muted); }
.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--link);
  font-size: 0.86rem;
  font-weight: 650;
  padding: 9px 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.contact-email:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.42);
  text-decoration: none;
}

.bottom-links {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bottom-links a {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 8px 13px;
  color: var(--soft);
  font-size: 0.84rem;
  text-decoration: none;
}
.bottom-links a:hover { color: var(--text); border-color: rgba(129,140,248,0.35); }

@media (max-width: 760px) {
  .intro-grid,
  .provider-grid,
  .rights-grid,
  .toc-list { grid-template-columns: 1fr; }
  .page-wrap { padding-top: 44px; }
  .page-title { font-size: 1.9rem; }
  .contact-card { padding: 20px; }
  .contact-email { width: 100%; }
}

@media (max-width: 520px) {
  .header-inner--legal-doc { padding: 0 18px; }
  .header-inner--legal-doc .header-back { font-size: 0.78rem; }
  .page-wrap { padding-left: 18px; padding-right: 18px; }
  .toc-box { padding: 20px; }
  .section-header { align-items: flex-start; }
  .policy-ol {
    gap: 10px;
  }
  .policy-ol > li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 13px;
    font-size: 0.88rem;
  }
  .policy-ol > li::before {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.78rem;
  }
  .policy-ol__content > strong {
    display: block;
    margin: 0 0 4px;
  }
  .policy-ul > li {
    padding-right: 12px;
  }
  .page-footer { padding-left: 18px; padding-right: 18px; }
}
