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

.legal-page {
  padding-top: 0;
  padding-bottom: 80px;
  font-size: 14px;
}

.legal-page .container {
  max-width: 900px;
}

.legal-hero {
  background: linear-gradient(135deg, #0b4f6c 0%, #0e5f85 60%, #0b4f6c 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin: 60px 0 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(6, 46, 74, 0.2);
}

.legal-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(255,255,255,0.08), transparent 32%);
  pointer-events: none;
}

.legal-hero h1 {
  color: #fff;
  margin-bottom: 8px;
}

.legal-hero .legal-updated {
  color: rgba(255,255,255,0.9);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.info-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.info-card h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: 8px;
  color: var(--text-dark-gray);
}

.info-card p {
  margin: 0;
  line-height: 1.5;
}

/* Legal Header */
.legal-header {
  text-align: center;
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.legal-header h1 {
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: var(--weight-bold);
  margin-bottom: 15px;
  color: var(--text-dark-gray);
}

.legal-updated {
  font-size: 14px;
  color: var(--text-gray);
  font-style: italic;
}

/* Legal Content */
.legal-content {
  padding: 0 20px;
}

.legal-section {
  margin-bottom: 50px;
}

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

.legal-section h2 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: var(--weight-bold);
  margin-bottom: 20px;
  color: var(--text-dark-gray);
}

.legal-section h3 {
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: var(--weight-bold);
  margin: 30px 0 15px;
  color: var(--text-dark-gray);
}

.legal-section h4 {
  font-size: 15px;
  font-weight: var(--weight-bold);
  margin: 20px 0 10px;
  color: var(--text-dark-gray);
}

.legal-section p {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--text-gray);
  line-height: 1.65;
  margin-bottom: 15px;
}

.legal-multiline {
  white-space: pre-line;
}

.legal-section ul {
  margin: 15px 0 15px 30px;
}

.legal-section ul li {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--text-gray);
  line-height: 1.65;
  margin-bottom: 10px;
  list-style-type: disc;
}

.legal-section a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.legal-section a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.legal-section .inline-links {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .legal-header {
    padding: 60px 0 30px;
  }

  .legal-header h1 {
    font-size: var(--text-3xl);
  }

  .legal-section h2 {
    font-size: var(--text-xl);
  }

  .legal-section h3 {
    font-size: var(--text-base);
  }

  .legal-content {
    padding: 0 10px;
  }

  .legal-section ul {
    margin-left: 20px;
  }
}
