/* ==============================
   LEGAL PAGES — SHARED STYLES
   Applies to: privacy.html, terms.html,
   refund.html, shipping.html
   Requires: style.css (loaded first)
============================== */

/* ── Hero ─────────────────────────── */
.legal-hero {
  background: var(--forest);
  padding: 72px 20px 56px;
}
.legal-hero .eyebrow { color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.legal-title {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 18px;
}
.legal-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
}
.legal-meta span { color: rgba(255,255,255,0.65); font-weight: 500; }

/* ── Body Layout ──────────────────── */
.legal-body { padding: 64px 20px 100px; background: var(--white); }

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Table of Contents ────────────── */
.legal-toc {
  position: sticky;
  top: 96px;
}
.toc-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: var(--sans);
}
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-nav a {
  font-size: 12.5px;
  color: var(--muted);
  padding: 5px 10px 5px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color var(--ease), border-color var(--ease);
  line-height: 1.4;
}
.toc-nav a:hover,
.toc-nav a.toc-active {
  color: var(--forest);
  border-left-color: var(--forest);
}

/* ── Content ──────────────────────── */
.legal-content { min-width: 0; }

.legal-section {
  padding-bottom: 52px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.2;
}
.legal-section h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin: 28px 0 10px;
}
.legal-section h3:first-child { margin-top: 0; }

.legal-section p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section p strong { color: var(--dark); font-weight: 600; }

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 6px;
  padding-left: 4px;
}
.legal-section li strong { color: var(--dark); font-weight: 600; }

/* Highlight / callout box */
.legal-box {
  background: var(--honey-lt);
  border-left: 3px solid var(--honey);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.legal-box p {
  font-size: 13.5px;
  color: var(--dark);
  margin-bottom: 0;
}

/* Forest-toned callout */
.legal-box-forest {
  background: rgba(26,48,40,0.05);
  border-left: 3px solid var(--forest);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.legal-box-forest p { font-size: 13.5px; color: var(--dark); margin-bottom: 0; }

/* Table (shipping) */
.legal-table-wrap { overflow-x: auto; margin: 20px 0; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.legal-table th {
  background: var(--forest);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.legal-table th:first-child { border-radius: var(--r-sm) 0 0 0; }
.legal-table th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
.legal-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
  line-height: 1.6;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: var(--off-white); }

/* Contact card */
.legal-contact-card {
  background: var(--warm);
  border-radius: var(--r-md);
  padding: 28px 32px;
  margin-top: 24px;
}
.legal-contact-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
}
.legal-contact-card p {
  font-size: 13.5px;
  color: var(--gray);
  margin-bottom: 8px;
}
.legal-contact-card a { color: var(--forest); font-weight: 500; }
.legal-contact-card a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────── */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-toc {
    position: static;
    display: none; /* hidden on mobile — long TOC clutters small screens */
  }
}

@media (max-width: 768px) {
  .legal-hero  { padding: 56px 20px 44px; }
  .legal-body  { padding: 44px 20px 80px; }
  .legal-section { padding-bottom: 36px; margin-bottom: 36px; }
}
