/* ============================================
   PromptBeat — Legal Pages (Privacy, Terms)
   ============================================ */

.legal {
  padding: 140px 0 80px;
}

.legal-header {
  text-align: center;
  margin-bottom: 64px;
}

.legal-header h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-top: 16px;
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text3);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-content p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 20px;
  padding-left: 0;
}

.legal-content li {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  padding: 6px 0 6px 28px;
  position: relative;
}

.legal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.legal-content li strong {
  color: var(--text);
}

.legal-content a {
  color: var(--g1);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  transition: border-color 0.2s;
}

.legal-content a:hover {
  border-color: var(--g1);
}

/* Disclaimer / caps sections */
.legal-content p:has(+ ul),
.legal-content p:last-of-type {
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .legal { padding: 100px 0 60px; }
  .legal-header h1 { font-size: 32px; }
  .legal-content h2 { font-size: 19px; margin-top: 36px; }
  .legal-content { padding: 0 8px; }
}
