/* ============================================================
   PODENZA — legal.css
   Estilos compartidos para páginas legales
   ============================================================ */

/* ── LAYOUT PRINCIPAL ── */
.legal-main {
  padding-top: calc(var(--navbar-h, 68px) + 48px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ── HEADER ── */
.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.legal-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lime);
  background: rgba(201,255,0,0.08);
  border: 1px solid rgba(201,255,0,0.15);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 16px;
}

.legal-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

/* ── TABLA DE CONTENIDO ── */
.legal-toc {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.legal-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}

.legal-toc-list {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc-list li {
  font-size: 14px;
}

.legal-toc-list a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-toc-list a:hover {
  color: var(--color-lime);
}

/* ── CUERPO DEL DOCUMENTO ── */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-section {
  padding: 40px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

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

.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-white);
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-top: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.1px;
}

.legal-section p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 14px;
}

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

.legal-section p strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.legal-section ul li,
.legal-section ol li {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

.legal-section ul li strong,
.legal-section ol li strong {
  color: rgba(255,255,255,0.85);
}

/* ── CAJA DE INFORMACIÓN ── */
.legal-info-box {
  background: rgba(201,255,0,0.04);
  border: 1px solid rgba(201,255,0,0.12);
  border-left: 3px solid rgba(201,255,0,0.5);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-info-box p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0 !important;
  line-height: 1.6;
}

.legal-info-box p strong {
  color: rgba(255,255,255,0.9);
}

/* ── HIGHLIGHT ── */
.legal-highlight {
  background: rgba(255,147,30,0.06);
  border: 1px solid rgba(255,147,30,0.15);
  border-left: 3px solid rgba(255,147,30,0.5);
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  font-size: 13px !important;
  color: rgba(255,255,255,0.7) !important;
  margin: 16px 0 !important;
}

/* ── LINKS ── */
.legal-link {
  color: var(--color-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.legal-link:hover {
  opacity: 0.75;
}

/* ── TABLA DE COOKIES ── */
.legal-cookie-table {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}

.legal-cookie-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 2fr 0.6fr;
  gap: 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.legal-cookie-row:last-child {
  border-bottom: none;
}

.legal-cookie-row > div {
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  border-right: 0.5px solid rgba(255,255,255,0.06);
}

.legal-cookie-row > div:last-child {
  border-right: none;
}

.legal-cookie-header {
  background: rgba(255,255,255,0.04);
}

.legal-cookie-header > div {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.legal-badge-yes {
  color: var(--color-lime) !important;
  font-weight: 600 !important;
}

.legal-badge-no {
  color: rgba(255,255,255,0.35) !important;
}

/* ── NOTA AL PIE DEL DOCUMENTO ── */
.legal-footer-note {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.legal-footer-note p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  margin-bottom: 24px;
}

.legal-footer-note strong {
  color: rgba(255,255,255,0.5);
}

.legal-back-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .legal-main { padding-top: calc(68px + 32px); }

  .legal-cookie-row {
    grid-template-columns: 1fr 1fr;
  }

  .legal-cookie-header > div:nth-child(3),
  .legal-cookie-row > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .legal-toc { padding: 20px; }
}

@media (max-width: 480px) {
  .legal-cookie-row {
    grid-template-columns: 1fr;
  }

  .legal-cookie-row > div {
    border-right: none;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
  }
}
