.legal-page {
  --legal-bg: #070a0e;
  --legal-surface: rgba(16, 22, 29, .88);
  --legal-surface-strong: #111821;
  --legal-border: rgba(255, 255, 255, .1);
  --legal-border-strong: rgba(255, 255, 255, .16);
  --legal-text: #f5f7fa;
  --legal-muted: rgba(226, 232, 240, .7);
  --legal-subtle: rgba(226, 232, 240, .52);
  --legal-accent: #28d2a5;
  --legal-accent-blue: #36b8e6;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(900px 520px at 15% -5%, rgba(40, 210, 165, .13), transparent 62%),
    radial-gradient(900px 560px at 92% 2%, rgba(54, 184, 230, .1), transparent 60%),
    linear-gradient(180deg, #070a0e 0%, #0a0e13 52%, #07090c 100%);
  color: var(--legal-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
  box-sizing: border-box;
}

.legal-page a {
  color: inherit;
}

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--legal-border);
  background: rgba(7, 10, 14, .82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.legal-topbar__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--legal-text);
  text-decoration: none;
}

.legal-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(92, 233, 196, .28);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(40, 210, 165, .18), rgba(54, 184, 230, .09));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}

.legal-brand__mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #71eccb;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.legal-brand__text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.legal-brand__text strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-brand__text small {
  color: var(--legal-subtle);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-topbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-topbar__nav a {
  min-height: 40px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--legal-muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.legal-topbar__nav a:hover,
.legal-topbar__nav a:focus-visible,
.legal-topbar__nav a.is-active {
  border-color: var(--legal-border);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.legal-topbar__nav a:hover {
  transform: translateY(-1px);
}

.legal-topbar__nav .legal-topbar__back {
  margin-left: 5px;
  border-color: rgba(55, 213, 174, .22);
  background: rgba(40, 210, 165, .1);
  color: #8df1d6;
}

.legal-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(38px, 7vw, 76px);
  display: grid;
  align-items: end;
  isolation: isolate;
  border: 1px solid var(--legal-border);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(24, 35, 45, .98), rgba(10, 16, 22, .95)),
    var(--legal-surface-strong);
  box-shadow: 0 35px 90px rgba(0, 0, 0, .34);
}

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.legal-hero::before {
  width: 380px;
  height: 380px;
  top: -205px;
  right: -30px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 0 0 54px rgba(255, 255, 255, .018),
    0 0 0 110px rgba(255, 255, 255, .012);
}

.legal-hero::after {
  width: 260px;
  height: 260px;
  bottom: -160px;
  left: 34%;
  background: rgba(40, 210, 165, .12);
  filter: blur(60px);
}

.legal-hero__glow {
  position: absolute;
  z-index: -1;
  width: 410px;
  height: 190px;
  top: 0;
  right: 4%;
  background: radial-gradient(ellipse, rgba(54, 184, 230, .18), transparent 68%);
  transform: rotate(-11deg);
  pointer-events: none;
}

.legal-hero__content {
  max-width: 850px;
}

.legal-eyebrow {
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(101, 231, 196, .2);
  border-radius: 999px;
  background: rgba(40, 210, 165, .08);
  color: #88efd3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.legal-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--legal-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.legal-hero__meta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--legal-subtle);
  font-size: 13px;
}

.legal-hero__meta a {
  color: #82e9ce;
  font-weight: 750;
  text-underline-offset: 4px;
}

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

.legal-sidebar {
  min-width: 0;
}

.legal-toc {
  position: sticky;
  top: 100px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--legal-border);
  border-radius: 20px;
  background: rgba(15, 21, 28, .74);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
}

.legal-toc__title {
  margin-bottom: 12px;
  color: var(--legal-subtle);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal-toc nav {
  display: grid;
  gap: 3px;
}

.legal-toc a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--legal-muted);
  font-size: 13px;
  font-weight: 670;
  line-height: 1.35;
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.legal-document {
  min-width: 0;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--legal-border);
  border-radius: 26px;
  background: rgba(15, 21, 28, .86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.legal-section {
  scroll-margin-top: 108px;
}

.legal-section + .legal-section {
  margin-top: 54px;
  padding-top: 54px;
  border-top: 1px solid var(--legal-border);
}

.legal-section__number {
  margin-bottom: 10px;
  display: block;
  color: var(--legal-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal-section h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.legal-section h3 {
  margin: 30px 0 11px;
  color: #f7fafc;
  font-size: 18px;
  line-height: 1.3;
}

.legal-section p,
.legal-section li,
.legal-data-table td,
.legal-data-table th {
  color: var(--legal-muted);
  font-size: 15px;
  line-height: 1.78;
}

.legal-section p {
  margin: 0 0 15px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 9px;
}

.legal-section strong {
  color: #f8fafc;
  font-weight: 800;
}

.legal-section a {
  color: #7ee7cb;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-notice {
  margin: 23px 0;
  padding: 18px 20px;
  border: 1px solid rgba(75, 210, 176, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(40, 210, 165, .08), rgba(54, 184, 230, .045));
  color: rgba(231, 247, 242, .82);
  font-size: 14px;
  line-height: 1.7;
}

.legal-notice--neutral {
  border-color: var(--legal-border);
  background: rgba(255, 255, 255, .035);
}

.legal-company-card {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--legal-border-strong);
  border-radius: 18px;
  background: rgba(6, 10, 14, .45);
}

.legal-company-card__heading {
  padding: 17px 20px;
  border-bottom: 1px solid var(--legal-border);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.legal-company-card__list {
  margin: 0;
}

.legal-company-card__row {
  padding: 14px 20px;
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  gap: 15px;
}

.legal-company-card__row + .legal-company-card__row {
  border-top: 1px solid rgba(255, 255, 255, .065);
}

.legal-company-card dt {
  color: var(--legal-subtle);
  font-size: 12px;
  font-weight: 800;
}

.legal-company-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #edf3f7;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.55;
}

.legal-company-card a {
  color: #86ead0;
}

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

.legal-data-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.legal-data-table th,
.legal-data-table td {
  padding: 15px 17px;
  vertical-align: top;
  text-align: left;
}

.legal-data-table th {
  background: rgba(255, 255, 255, .055);
  color: #eef3f7;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .035em;
}

.legal-data-table td {
  background: rgba(5, 8, 12, .24);
  font-size: 13px;
  line-height: 1.6;
}

.legal-data-table tbody tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.legal-data-table td:first-child {
  color: #fff;
  font-weight: 790;
}

.legal-chip {
  padding: 3px 8px;
  display: inline-flex;
  border: 1px solid rgba(40, 210, 165, .18);
  border-radius: 999px;
  background: rgba(40, 210, 165, .08);
  color: #8bead1;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.legal-definition-list {
  margin: 20px 0 0;
  display: grid;
  gap: 11px;
}

.legal-definition-list > div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
  background: rgba(255, 255, 255, .028);
}

.legal-definition-list dt {
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.legal-definition-list dd {
  margin: 6px 0 0;
  color: var(--legal-muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .legal-topbar__inner {
    min-height: 70px;
  }

  .legal-topbar__nav a:not(.legal-topbar__back) {
    display: none;
  }

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

  .legal-toc {
    position: static;
  }

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

@media (max-width: 620px) {
  .legal-topbar__inner,
  .legal-main,
  .site-footer__inner {
    width: min(100% - 24px, 1180px);
  }

  .legal-brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .legal-brand__text strong {
    max-width: 145px;
  }

  .legal-brand__text small {
    display: none;
  }

  .legal-topbar__nav .legal-topbar__back {
    min-height: 38px;
    margin-left: 0;
    padding: 8px 11px;
    font-size: 12px;
  }

  .legal-main {
    padding: 22px 0 48px;
  }

  .legal-hero {
    min-height: 300px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .legal-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .legal-hero p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.68;
  }

  .legal-eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
  }

  .legal-layout {
    margin-top: 16px;
    gap: 16px;
  }

  .legal-toc,
  .legal-document {
    border-radius: 18px;
  }

  .legal-toc {
    padding: 17px;
  }

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

  .legal-document {
    padding: 26px 20px;
  }

  .legal-section + .legal-section {
    margin-top: 40px;
    padding-top: 40px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 14px;
    line-height: 1.72;
  }

  .legal-company-card__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

}

@media print {
  .legal-page {
    background: #fff !important;
    color: #111;
  }

  .legal-topbar,
  .legal-sidebar,
  .site-footer,
  .legal-hero__glow {
    display: none !important;
  }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-hero,
  .legal-document {
    padding: 20px 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .legal-hero {
    min-height: 0;
  }

  .legal-hero::before,
  .legal-hero::after {
    display: none;
  }

  .legal-hero h1,
  .legal-section h2,
  .legal-section h3,
  .legal-section strong,
  .legal-company-card dd,
  .legal-data-table td:first-child {
    color: #111;
  }

  .legal-hero p,
  .legal-hero__meta,
  .legal-section p,
  .legal-section li,
  .legal-company-card dt,
  .legal-data-table td,
  .legal-data-table th {
    color: #333;
  }

  .legal-layout {
    display: block;
  }

  .legal-section {
    break-inside: avoid-page;
  }
}
