/* ==========================================================================
   Legal.css — Privacy Policy & Terms of Service pages
   ========================================================================== */

.legal-hero {
  padding: 140px 24px 60px;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  text-align: center;
}

.legal-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.6vw, 46px);
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.15;
}

.legal-hero .legal-updated {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.legal-hero .legal-lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}

.legal-body {
  padding: 60px 24px 100px;
  background: var(--bg);
}

.legal-body-inner {
  max-width: 780px;
  margin: 0 auto;
}

.legal-intro p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 16px;
}

/* ---- Table of contents ---- */
.legal-toc {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 8px 0 40px;
}

.legal-toc-heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.legal-toc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 32px;
}

@media (min-width: 640px) {
  .legal-toc-grid { grid-template-columns: 1fr 1fr; }
}

.legal-toc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.legal-toc-link:hover { color: var(--cyan); }

.legal-toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---- Sections ---- */
.legal-section {
  margin-bottom: 42px;
  scroll-margin-top: 100px;
}

.legal-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.legal-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.legal-section-title h2 {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--ink);
  margin: 0;
}

.legal-item {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 12px;
}

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

.legal-item strong { color: var(--ink); }

.legal-item a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(61, 139, 212, 0.35);
}

.legal-item a:hover { text-decoration-color: var(--cyan); }

/* ---- Contact card ---- */
.legal-contact-card {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.legal-contact-name {
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
  font-size: 15px;
}

.legal-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 10px;
}

.legal-contact-row:last-child { margin-bottom: 0; }

.legal-contact-row a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
}

.legal-contact-row a:hover { text-decoration: underline; }

.legal-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(61, 139, 212, 0.12);
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
}
