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

.legal {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal__header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.legal__updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.legal__body {
  max-width: 780px;
}

.legal__section {
  margin-bottom: 48px;
}

.legal__section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  color: var(--text);
}

.legal__section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal__section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal__section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.legal__section ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
}

.legal__section ul li strong {
  color: var(--text);
}

.legal__section strong {
  color: var(--text);
}

/* Tables */
.legal__table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal__table thead {
  background: rgba(255,255,255,0.04);
}

.legal__table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.legal__table td {
  padding: 14px 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal__table tr:last-child td {
  border-bottom: none;
}

.legal__table td strong {
  color: var(--text);
}

/* Contact block */
.legal__contact {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.legal__contact p {
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .legal {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .legal__title {
    font-size: 2rem;
  }

  .legal__section h2 {
    font-size: 1.3rem;
  }

  .legal__table {
    font-size: 0.8rem;
  }

  .legal__table th,
  .legal__table td {
    padding: 10px 12px;
  }
}
