.legal-page {
  padding: 8rem 0 4rem;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.legal-updated {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  background: white;
  border-radius: var(--glass-radius);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-pink-light);
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.legal-section h3:first-of-type {
  margin-top: 0;
}

.legal-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--color-sage);
  border-radius: 50%;
}

.legal-section a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.legal-section a:hover {
  color: var(--color-pink);
}

.legal-section.highlight-section {
  background: linear-gradient(
    135deg,
    var(--color-sage-light) 0%,
    rgba(175, 164, 206, 0.2) 100%
  );
  border: 2px solid var(--color-sage);
  position: relative;
  padding-left: 5rem;
}

.legal-section.highlight-section .highlight-icon {
  position: absolute;
  left: 2rem;
  top: 2rem;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.legal-section.highlight-section h2 {
  border-bottom: none;
  padding-bottom: 0;
  color: var(--color-navy);
}

.legal-section.highlight-section p {
  color: var(--text-primary);
}

.legal-info-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--color-pink);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--glass-radius-sm) var(--glass-radius-sm) 0;
  margin: 1rem 0;
}

.legal-info-box p {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.legal-info-box p:last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-table th {
  background: var(--color-navy);
  color: white;
  font-weight: 600;
}

.legal-table th:first-child {
  border-radius: var(--glass-radius-sm) 0 0 0;
}

.legal-table th:last-child {
  border-radius: 0 var(--glass-radius-sm) 0 0;
}

.legal-table td {
  color: var(--text-secondary);
}

.legal-table tr:nth-child(even) td {
  background: var(--bg-secondary);
}

.legal-table tr:last-child td:first-child {
  border-radius: 0 0 0 var(--glass-radius-sm);
}

.legal-table tr:last-child td:last-child {
  border-radius: 0 0 var(--glass-radius-sm) 0;
}

.legal-footer {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 7rem 0 3rem;
  }

  .legal-section {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-section.highlight-section {
    padding-left: 1.5rem;
    padding-top: 4.5rem;
  }

  .legal-section.highlight-section .highlight-icon {
    left: 50%;
    transform: translateX(-50%);
    top: 1.5rem;
  }

  .legal-table {
    font-size: 0.85rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .legal-header h1 {
    font-size: 1.75rem;
  }

  .legal-section ul li {
    padding-left: 1.5rem;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }
}
