/* ============================================================
   RUDRA KITS – legal.css
   Shared styles for terminos.html and privacidad.html
   ============================================================ */

/* HERO */
.legal-hero {
  background: #111;
  padding: 100px 48px 52px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-hero-inner { max-width: 860px; margin: 0 auto; }

.legal-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.legal-breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-breadcrumb a:hover { color: #F5C518; }

.legal-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.legal-updated { font-size: 13px; color: rgba(255,255,255,0.4); }

/* LAYOUT — single column */
.legal-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 48px 80px;
  background: #fff;
}

/* ensure anchor scroll targets clear the fixed navbar */
.legal-section {
  scroll-margin-top: 80px;
}

/* INLINE TABLE OF CONTENTS */
.legal-toc-inline {
  background: #f7f7f5;
  border: 1px solid #e5e5e3;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 44px;
}

.legal-toc-inline-title {
  font-size: 11px;
  font-weight: 800;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
  counter-reset: toc-counter;
}

.legal-toc-list li {
  counter-increment: toc-counter;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
}

.legal-toc-list li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: #ccc;
  flex-shrink: 0;
}

.legal-toc-list a {
  color: #555;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
  line-height: 1.4;
}
.legal-toc-list a:hover { color: #F5A800; }

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

.legal-intro-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(245,197,24,0.07);
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 40px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.legal-intro-box svg { flex-shrink: 0; margin-top: 1px; }

.legal-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid #f0f0ee;
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; }

.legal-section h2 {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
  padding-top: 8px;
}
.legal-section h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #222;
  margin: 22px 0 10px;
}
.legal-section p {
  font-size: 14.5px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  padding-left: 0;
  margin: 0 0 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-section ul li {
  font-size: 14.5px;
  color: #555;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}
.legal-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #F5C518;
  font-weight: 700;
}
.legal-section a { color: #F5A800; text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* highlight box (garantías, tabla finalidades) */
.legal-highlight-box {
  border: 1px solid #e8e8e6;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0 20px;
}
.lhb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid #f0f0ee;
  font-size: 13.5px;
  color: #444;
}
.lhb-row:last-child { border-bottom: none; }
.lhb-header { background: #f7f7f5; font-size: 11px; font-weight: 700; color: #aaa; letter-spacing: 0.08em; text-transform: uppercase; }
.lhb-val { font-weight: 700; color: #F5A800; text-align: right; }

/* cookies table */
.cookies-table {
  border: 1px solid #e8e8e6;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0 20px;
}
.ct-row {
  display: grid;
  grid-template-columns: 140px 1fr 100px;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid #f0f0ee;
  font-size: 13px;
  color: #555;
}
.ct-row:last-child { border-bottom: none; }
.ct-header { background: #f7f7f5; font-size: 11px; font-weight: 700; color: #aaa; letter-spacing: 0.08em; text-transform: uppercase; }

/* contact block */
.legal-contact-block {
  background: #f9f9f7;
  border: 1px solid #e8e8e6;
  border-radius: 10px;
  padding: 20px 22px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lcb-row { font-size: 14px; color: #444; }

/* derechos grid */
.derechos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 22px;
}
.derecho-card {
  background: #f9f9f7;
  border: 1px solid #e8e8e6;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  transition: border-color 0.2s;
}
.derecho-card:hover { border-color: rgba(245,197,24,0.5); }
.dc-icon { font-size: 22px; margin-bottom: 8px; }
.dc-title { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 6px; }
.dc-desc { font-size: 12px; color: #888; line-height: 1.4; }

/* footer active legal link */
.footer-legal-active { color: #F5A800 !important; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .legal-layout { padding: 40px 20px 60px; }
  .legal-hero { padding: 100px 24px 44px; }
  .legal-toc-list { grid-template-columns: 1fr; }
  .derechos-grid { grid-template-columns: 1fr 1fr; }
  .ct-row { grid-template-columns: 120px 1fr; }
  .ct-row span:last-child { display: none; }
  .ct-header span:last-child { display: none; }
}
@media (max-width: 480px) {
  .lhb-row { grid-template-columns: 1fr; gap: 4px; }
  .lhb-val { text-align: left; }
  .derechos-grid { grid-template-columns: 1fr 1fr; }
}
