/* =============================================
   LOCO BELLY — LEGAL PAGES (legal.css)
   Loads after style.css — inherits all variables
   ============================================= */

/* --- Legal Header (minimal, replaces full hero) --- */
.legal-header {
  background: var(--green);
  padding: 20px 0;
  text-align: center;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-back {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.legal-back:hover { color: var(--white); }

/* --- Legal Hero --- */
.legal-hero {
  background: var(--sage);
  padding: 72px 0 64px;
  text-align: center;
  border-bottom: 1px solid rgba(44, 74, 62, 0.12);
}

.legal-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.effective-date {
  font-size: 0.82rem;
  color: var(--stone);
  letter-spacing: 0.04em;
}

/* --- Body wrapper --- */
.legal-body {
  background: var(--cream);
  padding: 72px 0 100px;
}

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

/* --- Sticky TOC sidebar --- */
.legal-toc {
  position: sticky;
  top: 32px;
}

.legal-toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
}

.legal-toc li {
  counter-increment: toc-counter;
  margin-bottom: 4px;
}

.legal-toc li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--stone);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.legal-toc li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  opacity: 0.7;
}

.legal-toc li a:hover {
  background: rgba(44, 74, 62, 0.07);
  color: var(--green);
}

/* --- Sections --- */
.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.legal-section {
  scroll-margin-top: 100px;
}

.legal-section-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(44, 74, 62, 0.12);
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.85;
  margin-bottom: 12px;
}

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

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

.legal-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--charcoal);
  line-height: 1.7;
  padding: 5px 0;
  border-bottom: 1px solid rgba(44, 74, 62, 0.06);
}

.legal-section ul li:last-child { border-bottom: none; }

.legal-section ul li::before {
  content: '—';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Callout box --- */
.legal-callout {
  background: rgba(44, 74, 62, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.legal-callout p {
  font-size: 0.9rem !important;
  color: var(--green) !important;
  font-weight: 500;
  margin: 0 !important;
  line-height: 1.65 !important;
}

.legal-callout strong { color: var(--green); }

/* --- Contact block --- */
.legal-contact-block {
  background: var(--white);
  border: 1px solid rgba(44, 74, 62, 0.12);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 8px;
}

.legal-contact-block p {
  margin-bottom: 6px !important;
  font-size: 0.9rem !important;
}

.legal-contact-block strong {
  display: block;
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

.legal-contact-block a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-contact-block a:hover { color: var(--gold-hover); }

/* --- Legal footer (same as main site) --- */
.legal-footer {
  background: var(--green-dark);
  padding: 36px 0;
}

.legal-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-footer .logo-text { color: rgba(255, 255, 255, 0.65); font-size: 1.1rem; }
.legal-footer .logo-text em { color: rgba(230, 184, 106, 0.7); }

.legal-footer .footer-links { display: flex; gap: 24px; }
.legal-footer .footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.legal-footer .footer-links a:hover { color: rgba(255, 255, 255, 0.8); }

.legal-footer .footer-copy {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.28);
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-toc {
    position: static;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(44, 74, 62, 0.10);
  }
}

@media (max-width: 640px) {
  .legal-hero { padding: 48px 0 40px; }
  .legal-body  { padding: 48px 0 72px; }
  .legal-header-inner { justify-content: center; flex-direction: column; gap: 12px; }
  .legal-footer .footer-inner { flex-direction: column; text-align: center; }
  .legal-footer .footer-links { justify-content: center; }
}
