/* ===== Legal Pages (Terms & Privacy) ===== */

.legal-hero {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 0;
  text-align: center;
}
.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: hsl(174 84% 32% / 0.08);
  color: hsl(174 84% 32%);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.legal-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: hsl(220 20% 14%);
  line-height: 1.2;
  margin: 0 0 12px;
}
.legal-hero h1 span {
  background: linear-gradient(135deg, hsl(174 84% 32%), hsl(213 94% 52%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legal-hero .legal-updated {
  font-size: 13px;
  color: hsl(220 10% 50%);
  margin-bottom: 8px;
}
.legal-hero p {
  font-size: 15px;
  color: hsl(220 10% 44%);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* Table of contents */
.legal-toc {
  width: 100%;
  max-width: 820px;
  margin: 36px auto 0;
  padding: 0 24px;
}
.legal-toc-card {
  background: hsl(220 20% 97%);
  border: 1px solid hsl(220 14% 92%);
  border-radius: 16px;
  padding: 24px 28px;
}
.legal-toc-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: hsl(220 20% 14%);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.legal-toc-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: hsl(213 94% 48%);
  text-decoration: none;
  padding: 6px 0;
  font-weight: 500;
  transition: color 0.15s;
}
.legal-toc-list li a:hover {
  color: hsl(174 84% 32%);
}
.legal-toc-list li a .toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: hsl(213 94% 52% / 0.1);
  color: hsl(213 94% 48%);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Sections */
.legal-content {
  width: 100%;
  max-width: 820px;
  margin: 36px auto 0;
  padding: 0 24px 80px;
}
.legal-section {
  margin-bottom: 36px;
  scroll-margin-top: 80px;
}
.legal-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.legal-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, hsl(174 84% 32% / 0.1), hsl(213 94% 52% / 0.1));
  color: hsl(174 84% 32%);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.legal-section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: hsl(220 20% 14%);
  margin: 0;
}
.legal-section p {
  font-size: 14.5px;
  color: hsl(220 10% 38%);
  line-height: 1.75;
  margin: 0 0 12px;
}
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.legal-section ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: hsl(220 10% 38%);
  line-height: 1.75;
  margin-bottom: 4px;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(174 84% 32% / 0.4);
}
.legal-section .legal-highlight {
  background: hsl(174 84% 32% / 0.06);
  border-left: 3px solid hsl(174 84% 32%);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 14px;
  color: hsl(220 10% 32%);
  line-height: 1.7;
}

/* Bottom CTA */
.legal-bottom {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.legal-bottom-card {
  background: linear-gradient(135deg, hsl(174 84% 32%), hsl(213 94% 48%));
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  color: #fff;
}
.legal-bottom-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
}
.legal-bottom-card p {
  font-size: 14.5px;
  opacity: 0.88;
  margin: 0 0 22px;
  line-height: 1.6;
}
.legal-bottom-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.legal-bottom-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.legal-bottom-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.legal-bottom-links .btn-white {
  background: #fff;
  color: hsl(174 84% 32%);
}
.legal-bottom-links .btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}

@media (max-width: 600px) {
  .legal-hero { padding-top: 36px; }
  .legal-hero h1 { font-size: 24px; }
  .legal-toc-list { grid-template-columns: 1fr; }
  .legal-bottom-card { padding: 28px 20px; }
  .legal-bottom-card h3 { font-size: 18px; }
}