/* ============================================================
   Liravo — Privacy Policy page
   Geometry from Figma API (node 1216:4017, 1440x8139)
   Page bg #F5F5F9 · white card 818px wide, r30, on the page
   ============================================================ */

.legal-body {
  background: var(--bg-soft); /* #F5F5F9 */
}

/* ---------- Nav (no background — items float on page bg, per Figma) ---------- */
.legal-header {
  position: relative;
  background: var(--bg-soft);
  height: 88px;
}

.legal-nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 48px));
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
}

.legal-nav .logo {
  color: var(--ink);
}

.legal-nav .nav-links {
  color: var(--ink);
}

.legal-nav .btn-nav {
  height: 40px;
  font-size: 14px;
  padding: 0 20px;
  border-radius: 29.5px;
  background: var(--brand);
  color: var(--white);
}

.legal-nav .explore-btn {
  color: var(--ink);
  background-image: none;
  background: rgba(0, 0, 0, .05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, .08);
}

.legal-nav .explore-btn:hover {
  background: rgba(0, 0, 0, .08);
}

/* ---------- Content card ---------- */
.legal-main {
  padding: 40px 24px 0;
}

.legal-card {
  max-width: 830px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 30px;
  padding: 60px 60px 60px;
}

/* ---------- Typography ---------- */
.legal-h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 54px;
  color: var(--ink);
}

.legal-updated {
  margin-top: 24px;                 /* y188→y257 ≈ 69px, minus title line-height bleed */
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 18px;
  color: #a0a0a0;                   /* rgb(160,160,160) */
}

.legal-lead {
  margin-top: 32px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #3d3d3d;                   /* rgb(61,61,61) */
}

.legal-lead + .legal-lead {
  margin-top: 30px;
}

.legal-section {
  margin-top: 56px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 36px;
  color: var(--ink);
  margin: 0 0 12px;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: var(--ink);
  margin: 32px 0 8px;
}

.legal-section p {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #3d3d3d;                  /* rgb(61,61,61) */
  margin: 0 0 30px;
}

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

/* ---------- Contact links (blue per Figma character overrides) ---------- */
.legal-contact-link {
  color: var(--brand);              /* #019EFF — Figma rgb(1,158,255) */
  text-decoration: none;
}
.legal-contact-link:hover { text-decoration: underline; }

.legal-link {
  color: #3d3d3d;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s ease;
}
.legal-link:hover { color: var(--brand); }

/* ---------- Footer (outside card, on page bg #F5F5F9) ---------- */
.legal-footer {
  max-width: 830px;
  margin: 0 auto;
  padding: 100px 60px 100px;
  text-align: center;
}

.legal-copyright {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 19.2px;
  color: #7b7b7b;                  /* rgb(123,123,123) */
}

.legal-footer-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 19.2px;
  color: #a0a0a0;                  /* rgb(160,160,160) */
}
.legal-footer-links a { transition: color .15s ease; }
.legal-footer-links a:hover { color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .legal-card {
    padding: 88px 40px 48px;
  }
}

@media (max-width: 640px) {
  .legal-main {
    padding: 24px 16px 80px;
  }
  .legal-card {
    padding: 56px 24px 40px;
    border-radius: 24px;
  }
  .legal-h1 {
    font-size: 28px;
    line-height: 40px;
  }
  .legal-section h2 {
    font-size: 21px;
    line-height: 32px;
  }
  .legal-section h3 {
    font-size: 18px;
    line-height: 26px;
    margin-top: 26px;
  }
  .legal-section p,
  .legal-lead {
    font-size: 15px;
    line-height: 24px;
  }
  .legal-footer-links {
    gap: 20px;
    font-size: 14px;
  }
}
