/* ============================================================
   LEGAL PAGES — Privacy Policy & Terms and Conditions
   Shared styles for legal/policy page layout
   ============================================================ */

/* ---------- Legal Header ---------- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  height: 56px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--brown-mid);
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--coral-600);
}

.legal-header-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ---------- Legal Main ---------- */
.legal-main {
  background: linear-gradient(to right bottom, #faf8f4, #fce8ed, #fff7ed);
  min-height: calc(100vh - 56px);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- Title Hero ---------- */
.legal-title-area {
  text-align: center;
  padding: 32px 0 16px;
}

.legal-title-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: linear-gradient(to right bottom, #e94a49, #ef4444);
  color: white;
}

.legal-title-area h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-title-area .legal-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.legal-title-area .legal-date {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}

/* ---------- Intro Card ---------- */
.legal-intro {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.legal-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

/* ---------- Section Cards ---------- */
.legal-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 8px;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.legal-section ul li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 4px 0;
}

.legal-section ul li .bullet {
  color: var(--coral-600);
  font-weight: 700;
  flex-shrink: 0;
}

.legal-section .highlight-box {
  background: rgba(233, 84, 73, 0.06);
  border-left: 3px solid var(--coral-600);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 12px;
}

.legal-section .highlight-box p {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* ---------- Contact Card (gradient) ---------- */
.legal-contact-section {
  background: linear-gradient(to right bottom, #372315, #cc2519);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: white;
  text-align: center;
}

.legal-contact-section h2 {
  color: white;
  margin-bottom: 12px;
}

.legal-contact-section > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-bottom: 24px;
}

.legal-contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.legal-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  transition: color 0.2s;
}

.legal-contact-link:hover {
  color: white;
}

.legal-contact-link svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ---------- Bottom Back Button ---------- */
.legal-back-bottom {
  text-align: center;
  padding: 16px 0;
}

.legal-back-bottom .back-btn {
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  color: var(--brown-mid);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.legal-back-bottom .back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  color: var(--coral-600);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .legal-header-inner {
    padding: 12px 16px;
  }

  .legal-content {
    padding: 32px 16px 48px;
  }

  .legal-title-area h1 {
    font-size: 32px;
  }

  .legal-section,
  .legal-intro {
    padding: 24px 20px;
  }

  .legal-contact-section {
    padding: 32px 20px;
  }
}
