/* ============================================
   wellB — Legal Pages Shared Styles
   ============================================ */

/* Reuses CSS variables from styles.css */
@import url('styles.css');

/* ---- Legal Page Layout ---- */
.legal-hero {
  background: linear-gradient(160deg, #0d3320 0%, #1a5c3a 100%);
  padding: 120px 0 60px;
  text-align: center;
}

.legal-hero .section-label {
  color: #a7f3d0;
  background: rgba(255,255,255,.12);
  margin-bottom: 1rem;
}

.legal-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}

.legal-hero .last-updated {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ---- Document Body ---- */
.legal-body {
  padding: 60px 0 100px;
  background: var(--off-white, #fafcfb);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Table of Contents ---- */
.legal-toc {
  background: var(--white, #fff);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.legal-toc h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-400, #9ca3af);
  margin-bottom: 1rem;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem 2rem;
}

.legal-toc a {
  font-size: .875rem;
  color: var(--green-accent, #25a65a);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.legal-toc a:hover {
  color: var(--green-mid, #1a5c3a);
  text-decoration: underline;
}

/* ---- Sections ---- */
.legal-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text, #0f1f12);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid #e8f5e9;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.legal-section h2 .section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--green-accent, #25a65a);
  color: white;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #0f1f12);
  margin: 1.25rem 0 .5rem;
}

.legal-section p {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--gray-600, #4b5563);
  margin-bottom: .75rem;
}

.legal-section ul, .legal-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-section li {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--gray-600, #4b5563);
  margin-bottom: .35rem;
}

.legal-section li strong {
  color: var(--text, #0f1f12);
}

/* ---- Info boxes ---- */
.legal-box {
  border-radius: .875rem;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.legal-box.green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.legal-box.blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.legal-box.amber {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.legal-box-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}

.legal-box p {
  margin: 0;
  font-size: .875rem !important;
  line-height: 1.6 !important;
  color: var(--gray-800, #1f2937) !important;
}

/* ---- Contact block ---- */
.legal-contact {
  background: linear-gradient(135deg, #0d3320, #1a5c3a);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  color: white;
  margin-top: 3rem;
}

.legal-contact h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.legal-contact p {
  font-size: .9rem;
  opacity: .75;
  margin-bottom: 1rem;
}

.legal-contact a {
  display: inline-block;
  background: white;
  color: var(--green-mid, #1a5c3a);
  font-weight: 700;
  font-size: .9rem;
  padding: .65rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.legal-contact a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

/* ---- Data table (for data safety) ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .875rem;
}

.data-table th {
  background: #f0fdf4;
  text-align: left;
  padding: .75rem 1rem;
  font-weight: 700;
  color: var(--green-mid, #1a5c3a);
  border-bottom: 2px solid #bbf7d0;
}

.data-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
  color: var(--gray-600, #4b5563);
  line-height: 1.5;
  vertical-align: top;
}

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

.data-table tr:hover td {
  background: #f9fafb;
}

/* ---- Data Safety cards ---- */
.data-safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.data-card {
  background: var(--white, #fff);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 1rem;
  padding: 1.25rem;
}

.data-card-icon {
  width: 40px;
  height: 40px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  font-size: 1.25rem;
}

.data-card h4 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text, #0f1f12);
  margin-bottom: .35rem;
}

.data-card p {
  font-size: .8rem;
  color: var(--gray-600, #4b5563);
  line-height: 1.5;
  margin: 0;
}

/* ---- Badge pill ---- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  vertical-align: middle;
}

.badge-pill.collected {
  background: #fee2e2;
  color: #991b1b;
}

.badge-pill.not-collected {
  background: #dcfce7;
  color: #166534;
}

.badge-pill.shared {
  background: #fff7ed;
  color: #9a3412;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .data-safety-grid {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding: 100px 0 50px;
  }
}

/* ---- SVG Icons ---- */
.legal-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.legal-box.green .legal-box-icon { color: #16a34a; }
.legal-box.blue  .legal-box-icon { color: #2563eb; }
.legal-box.amber .legal-box-icon { color: #d97706; }

.legal-box-icon .legal-icon {
  width: 1.375rem;
  height: 1.375rem;
}

.ds-summary-card .ds-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: .5rem;
}

.ds-summary-card .ds-icon .legal-icon {
  width: 2rem;
  height: 2rem;
}

.ds-row-icon .legal-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.data-card-icon .legal-icon {
  width: 1.375rem;
  height: 1.375rem;
}

.store-logo .legal-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.section-num .legal-icon {
  width: 15px;
  height: 15px;
  display: block;
}
