/* =========================================
   LEGAL — privacy-policy.html, terms-of-service.html
   ========================================= */

/* ---------- Article shell ---------- */
.legal-shell {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E7E6EF;
  border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(18, 29, 58, .14), 0 8px 30px -12px rgba(104, 87, 217, .12);
  overflow: hidden;
}

.legal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 40% at 0% 0%, rgba(104, 87, 217, .06), transparent 60%),
    radial-gradient(70% 35% at 100% 0%, rgba(132, 148, 244, .07), transparent 60%);
}

.legal-prose {
  position: relative;
  color: #3A3847;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-prose p {
  margin: 0 0 1.1rem;
}

.legal-prose strong {
  color: #1B2C58;
  font-weight: 700;
}

.legal-prose a {
  color: #6857D9;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(104, 87, 217, .35);
  transition: color .2s ease, text-decoration-color .2s ease;
}

.legal-prose a:hover {
  color: #31388D;
  text-decoration-color: #6857D9;
}

.legal-prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.legal-prose li {
  position: relative;
  padding-left: 1.5rem;
  color: #4D4B5C;
}

.legal-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6857D9, #8686E8);
  box-shadow: 0 0 0 3px rgba(104, 87, 217, .12);
}

.legal-section {
  scroll-margin-top: 7rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px dashed #E7E6EF;
}

.legal-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-section-title {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #121D3A;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.legal-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .5rem;
  border-radius: .75rem;
  background: linear-gradient(180deg, rgba(217, 222, 255, .6), rgba(237, 241, 253, .4));
  border: 1px solid rgba(104, 87, 217, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: #31388D;
  letter-spacing: .04em;
}

/* ---------- Sidebar TOC ---------- */
.toc-card {
  position: sticky;
  top: 6.5rem;
  background: rgba(255, 255, 255, .8);
  border: 1px solid #E7E6EF;
  border-radius: 22px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px -18px rgba(18, 29, 58, .15);
}

.toc-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6857D9;
  margin-bottom: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .55rem;
  border-radius: .65rem;
  font-size: .85rem;
  color: #4D4B5C;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.toc-link:hover {
  background: rgba(104, 87, 217, .08);
  color: #31388D;
  transform: translateX(2px);
}

.toc-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: #8686E8;
  min-width: 1.4rem;
}

/* ---------- Breadcrumb ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  color: #737185;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.crumb a {
  color: #4D4B5C;
  transition: color .2s ease;
}

.crumb a:hover {
  color: #6857D9;
}

.crumb-sep {
  color: #B1AEC2;
}

/* ---------- Cross-link card ---------- */
.legal-cross {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(104, 87, 217, .06), rgba(134, 134, 232, .04));
  border: 1px solid #D9DEFF;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.legal-cross:hover {
  transform: translateY(-2px);
  border-color: #B8C0F4;
  box-shadow: 0 18px 40px -20px rgba(104, 87, 217, .35);
}

.legal-cross-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #6857D9;
}

.legal-cross-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #121D3A;
  font-size: 1.05rem;
}
