/* Legal pages — match official-website light theme (#003AFE) */

.legal-page {
  background: #f7f7f7;
  color: #101010;
  min-height: 100vh;
}

.legal-page .nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #ececec;
}

.legal-page .nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #101010;
  text-decoration: none;
}

.legal-page .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003afe, #4b7cff);
  color: #fff;
  flex: 0 0 auto;
}

.legal-page .brand-mark .brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.legal-page .brand-mark .brand-logo-text {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.legal-page .brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-page .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-page .nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: #5c5c5c;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-page .nav-links a:hover,
.legal-page .nav-links a.is-active {
  color: #003afe;
  background: rgba(0, 58, 254, 0.06);
}

.legal-page .nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.legal-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.legal-page .btn-ghost {
  color: #003afe;
  border-color: rgba(0, 58, 254, 0.28);
  background: #fff;
}

.legal-page .btn-primary {
  color: #fff;
  background: #003afe;
}

.legal-page .btn-primary:hover {
  background: #002fd1;
}

.legal-hero {
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.legal-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 28px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 58, 254, 0.08);
  color: #003afe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.legal-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #101010;
}

.legal-updated {
  margin: 0;
  color: #8a8a8a;
  font-size: 14px;
}

.legal-switch {
  margin-top: 22px;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: #f3f4f7;
}

.legal-switch a {
  min-width: 108px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c5c5c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-switch a.is-active {
  background: #fff;
  color: #003afe;
  box-shadow: 0 6px 18px rgba(16, 16, 16, 0.06);
}

.legal-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 10px 28px rgba(16, 16, 16, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin: 0 0 8px 4px;
}

.legal-toc a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #5c5c5c;
  text-decoration: none;
  transition: 0.18s ease;
}

.legal-toc a:hover,
.legal-toc a.is-active {
  color: #003afe;
  background: rgba(0, 58, 254, 0.06);
}

.legal-content {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 22px;
  padding: 34px 36px 40px;
  box-shadow: 0 10px 28px rgba(16, 16, 16, 0.04);
}

.legal-lead {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(0, 58, 254, 0.05);
  border: 1px solid rgba(0, 58, 254, 0.12);
  color: #3a3a3a;
  font-size: 15.5px;
  line-height: 1.85;
}

.legal-content section {
  margin-bottom: 34px;
  scroll-margin-top: 108px;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #efefef;
  font-size: 20px;
  font-weight: 750;
  color: #101010;
}

.legal-content p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.85;
  color: #4a4a4a;
}

.legal-content ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.legal-content li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: #4a4a4a;
}

.legal-content li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #003afe;
}

.legal-content strong {
  color: #101010;
  font-weight: 700;
}

.legal-page .footer {
  background: #fff;
  border-top: 1px solid #ececec;
}

.legal-page .footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #8a8a8a;
  font-size: 13px;
}

.legal-page .footer-legal {
  display: flex;
  gap: 16px;
}

.legal-page .footer-legal a {
  color: #5c5c5c;
  text-decoration: none;
  font-weight: 600;
}

.legal-page .footer-legal a:hover {
  color: #003afe;
}

@media (max-width: 900px) {
  .legal-page .nav-links {
    display: none;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .toc-title {
    width: 100%;
  }

  .legal-content {
    padding: 24px 18px 28px;
  }
}


/* locale on legal pages */
.legal-page .nav-actions { display:flex; align-items:center; gap:10px; }
.legal-page .nav-locale { position:relative; display:inline-flex; align-items:center; }
.legal-page .nav-locale-btn {
  display:inline-flex; align-items:center; gap:8px; height:32px; padding:0 4px;
  border:0; background:transparent; color:#101010; font-size:14px; font-weight:500; cursor:pointer;
}
.legal-page .nav-locale-btn svg { color:#003afe; transition: transform .18s ease; }
.legal-page .nav-locale.is-open .nav-locale-btn svg { transform: rotate(180deg); }
.legal-page .nav-locale-menu {
  position:absolute; top:calc(100% + 10px); right:0; min-width:140px; padding:6px;
  border-radius:12px; background:#fff; border:1px solid #ebebeb; box-shadow:0 12px 30px rgba(16,16,16,.12); z-index:50;
}
.legal-page .nav-locale-menu[hidden]{ display:none!important; }
.legal-page .nav-locale-menu button {
  width:100%; text-align:left; border:0; background:transparent; border-radius:8px;
  padding:9px 10px; font-size:13px; font-weight:600; color:#101010; cursor:pointer;
}
.legal-page .nav-locale-menu button:hover,
.legal-page .nav-locale-menu button.is-active { background:rgba(0,58,254,.08); color:#003afe; }
.legal-page .legal-shell[hidden]{ display:none!important; }
