/* ============================================================
   BUNOFEED — Legal Pages Stylesheet (legal.css)
   Shared by terms.html and privacy.html
   ============================================================ */

/* ---- Legal Hero ---- */
.legal-hero {
  background: var(--brown);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139,69,19,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.legal-hero-inner { position: relative; z-index: 1; }
.legal-hero .section-tag {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  margin-bottom: 1rem;
}
.legal-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.legal-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

/* ---- Legal Body Layout ---- */
.legal-body {
  background: var(--off-white);
  padding: 4rem 2rem;
}
.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---- Sidebar TOC ---- */
.legal-toc {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.legal-toc h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--orange);
}
.legal-toc ul { display: flex; flex-direction: column; gap: 0.5rem; }
.legal-toc ul li a {
  font-size: 0.88rem;
  color: var(--gray);
  font-weight: 500;
  transition: color var(--transition), padding-left var(--transition);
  display: block;
  padding: 4px 0 4px 8px;
  border-left: 2px solid transparent;
  border-radius: 2px;
}
.legal-toc ul li a:hover {
  color: var(--orange);
  border-left-color: var(--orange);
  padding-left: 14px;
}

/* ---- Legal Content ---- */
.legal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Notice box */
.legal-notice {
  background: rgba(255,107,0,0.08);
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 1.2rem 1.5rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--brown-dark);
  line-height: 1.65;
}
.legal-notice i {
  color: var(--orange);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Section */
.legal-section { display: flex; flex-direction: column; gap: 0.9rem; }
.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #f0e8e0;
}
.legal-section h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  margin-top: 0.5rem;
}
.section-num {
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.legal-section p {
  color: var(--gray);
  font-size: 0.96rem;
  line-height: 1.75;
}
.legal-section a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}
.legal-section a:hover { text-decoration-color: var(--orange); }

/* Legal List */
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 0.4rem;
}
.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: var(--gray);
  line-height: 1.6;
}
.legal-list li i {
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.legal-list li i.fa-check-circle { color: #28a745; }
.legal-list li i.fa-times-circle { color: #dc3545; }
.legal-list li i.fa-user,
.legal-list li i.fa-map-marker-alt,
.legal-list li i.fa-credit-card,
.legal-list li i.fa-comment,
.legal-list li i.fa-globe,
.legal-list li i.fa-chart-bar,
.legal-list li i.fa-mobile-alt,
.legal-list li i.fa-eye,
.legal-list li i.fa-edit,
.legal-list li i.fa-trash,
.legal-list li i.fa-ban,
.legal-list li i.fa-download { color: var(--orange); }

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0.5rem 0;
}
.info-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 1.4rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  transition: var(--transition);
}
.info-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(107,45,14,0.1);
}
.info-card i {
  font-size: 1.6rem;
  color: var(--orange);
}
.info-card strong {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brown-dark);
}
.info-card span {
  font-size: 0.8rem;
  color: var(--gray);
}

/* Contact Box */
.contact-box {
  background: var(--off-white);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-left: 4px solid var(--orange);
}
.contact-box div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
}
.contact-box div i { color: var(--orange); width: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .legal-container {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 2rem;
    align-items: start;
  }
  .legal-toc h4 { grid-column: 1 / -1; }
  .info-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .legal-content { padding: 1.8rem 1.2rem; }
  .info-cards { grid-template-columns: 1fr; }
  .legal-toc { display: block; }
}
