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

:root {
  --blue: #2B2A7F;
  --blue-deep: #1E1D5C;
  --red: #CC0000;
  --dark: #0D0D1A;
  --white: #FFFFFF;
  --off-white: #F4F3F1;
  --rule: #E6E5E2;
  --muted: #6B6B80;
  --ink-soft: #343447;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --pad-h: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.legal-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(calc(100% - 36px), var(--max));
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(230,229,226,.85);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(13,13,26,.14);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.legal-nav-inner {
  min-height: 66px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.asap-wordmark {
  --wordmark-size: 34px;
  --wordmark-width: 60px;
  display: inline-block;
  width: var(--wordmark-width);
  color: var(--red);
  font-family: var(--font);
  font-size: var(--wordmark-size);
  font-weight: 900;
  line-height: .74;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transform: matrix(.58, 0, -.22, 1, 0, 0);
  transform-origin: left center;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link,
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.nav-link {
  opacity: .65;
}

.nav-pill {
  min-height: 42px;
  padding: 0 20px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(43,42,127,.24);
}

.legal-hero {
  min-height: 420px;
  padding: 148px var(--pad-h) 80px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(13,13,26,.94), rgba(13,13,26,1)),
    var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.legal-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 52px;
  align-items: end;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

.legal-title {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: 70px;
  font-weight: 900;
  line-height: .94;
  letter-spacing: 0;
}

.legal-title span {
  color: #FF4747;
}

.legal-sub {
  max-width: 650px;
  color: rgba(255,255,255,.66);
  font-size: 17px;
  line-height: 1.75;
}

.legal-meta-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.meta-label {
  margin-bottom: 8px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.meta-value {
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
}

.legal-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--pad-h) 96px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 110px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
}

.toc-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.legal-toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover {
  background: var(--off-white);
  color: var(--blue);
}

.legal-toc span {
  color: var(--red);
  font-weight: 900;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-intro,
.legal-section,
.legal-note,
.quick-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
}

.legal-intro,
.legal-section {
  padding: 34px;
}

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

.section-number {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.legal-content h2 {
  margin-bottom: 14px;
  color: var(--dark);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.legal-content h3 {
  margin: 24px 0 10px;
  color: var(--dark);
  font-size: 17px;
  font-weight: 800;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.legal-content p + p {
  margin-top: 12px;
}

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

.legal-content li + li {
  margin-top: 6px;
}

.legal-content strong {
  color: var(--dark);
  font-weight: 800;
}

.legal-note {
  padding: 22px 24px;
  background: #FBFAF8;
}

.legal-note strong {
  color: var(--dark);
}

.table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
}

th {
  color: var(--dark);
  font-weight: 800;
  background: var(--off-white);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.rights-grid,
.deleted-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-card {
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #FBFAF8;
}

.mini-card-title {
  margin-bottom: 4px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
}

.mini-card-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quick-card {
  padding: 26px;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 18px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(43,42,127,.22);
}

.page-footer {
  padding: 34px var(--pad-h);
  border-top: 1px solid var(--rule);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.page-footer a {
  color: var(--muted);
  text-decoration: none;
}

.page-footer a:hover {
  color: var(--blue);
}

@media (max-width: 960px) {
  .legal-hero-inner,
  .legal-main {
    grid-template-columns: 1fr;
  }

  .legal-meta-card {
    max-width: 360px;
  }

  .legal-toc {
    position: static;
  }

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

@media (max-width: 720px) {
  :root {
    --pad-h: 20px;
  }

  .legal-nav {
    top: 12px;
    width: calc(100% - 24px);
    border-radius: 18px;
  }

  .legal-nav-inner {
    min-height: 58px;
    padding: 0 18px;
  }

  .nav-link {
    display: none;
  }

  .nav-pill {
    min-height: 38px;
    padding: 0 15px;
    font-size: 12px;
  }

  .legal-hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 52px;
  }

  .legal-title {
    font-size: 45px;
  }

  .legal-sub {
    font-size: 15px;
  }

  .legal-main {
    padding-top: 42px;
    padding-bottom: 64px;
    gap: 28px;
  }

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

  .legal-intro,
  .legal-section,
  .quick-card {
    padding: 24px 20px;
  }

  .legal-content h2 {
    font-size: 25px;
  }
}
