/* Shared styles for legal & business information pages (Terms, Privacy, Refund, Shipping, Contact, About) */

body {
  background: #f8fafc;
  color: #334155;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  margin: 0;
}

.legal-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 16px 72px;
}

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

.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
}

.legal-breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.legal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.legal-subtitle {
  font-size: 1rem;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 14px;
}

.legal-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.legal-meta span {
  background: #eff6ff;
  color: #0066cc;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Page switcher between all legal pages */
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
}

.legal-tabs a {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-tabs a:hover {
  border-color: #bfdbfe;
  color: #0066cc;
}

.legal-tabs a.active {
  background: #0066cc;
  border-color: #0066cc;
  color: #ffffff;
}

.legal-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 34px 40px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
}

.legal-card section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-card section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.legal-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.legal-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin: 16px 0 6px;
}

.legal-card p {
  margin: 0 0 10px;
  font-size: 0.93rem;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 10px;
  padding-left: 22px;
  font-size: 0.93rem;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card strong {
  color: #0f172a;
}

.legal-card a {
  color: #0066cc;
  font-weight: 600;
}

.legal-note {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #075985;
  margin: 12px 0 0;
}

.legal-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #fd5c00;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #9a3412;
  margin: 12px 0 0;
}

/* Business details that the owner must fill in before going live */
.fill-in {
  background: #fef9c3;
  border: 1px dashed #eab308;
  color: #854d0e;
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 700;
}

/* Contact / info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 6px 0 10px;
}

.info-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.info-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.info-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
}

.steps-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  color: #0066cc;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.legal-footer {
  position: relative;
  background: linear-gradient(180deg, #1e293b 0%, #111827 100%);
  color: #cbd5e1;
  padding: 40px 16px 20px;
}

.legal-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0066cc 0%, #fd5c00 50%, #03a93a 100%);
}

.legal-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.legal-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.86rem;
}

.legal-footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

.legal-footer-links a:hover,
.legal-footer-links a.active {
  color: #38bdf8;
}

.legal-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #64748b;
}

.legal-footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

.legal-dev-credit {
  text-align: center;
  padding: 16px 20px 0;
  margin-top: 16px;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-dev-credit a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal-container {
    padding: 22px 12px 56px;
  }

  .legal-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .legal-title {
    font-size: 1.7rem;
  }
}
