/* ==========================================================================
   TOPS SAFETY CONTROL — "Cookie Policy" (página legal)
   Depende de mains.css (ya cargado): variables :root, .container-tops,
   .section-pad, .eyebrow, .section-title, .section-lead, .btn-tops,
   .link-flame, .reveal, flame-mark svg, etc.
   Prefijo "lgl-" (Legal) para no chocar con "svc-"/"svl-" (páginas de
   servicio).
   ========================================================================== */

/* ================================ HERO ================================ */
.lgl-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 180px 0 64px;
  background: linear-gradient(175deg, var(--c-off-white) 0%, var(--c-white) 62%, var(--c-off-white) 100%);
}
.lgl-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--c-red) 50%, transparent);
  opacity: 0.7;
}
.lgl-hero .container-tops { position: relative; z-index: 1; }
.lgl-hero .svc-breadcrumb { margin-bottom: 28px; }

/* -- decorative background layer: technical grid + glow + shield watermark -- */
.lgl-hero-decor {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.lgl-hero-grid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--c-ink); opacity: 0.055;
  -webkit-mask-image: linear-gradient(to left, black 0%, black 35%, transparent 82%);
  mask-image: linear-gradient(to left, black 0%, black 35%, transparent 82%);
}
.lgl-hero-glow {
  position: absolute; top: -140px; right: -100px; z-index: 0;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,17,26,0.16) 0%, rgba(224,17,26,0) 72%);
  filter: blur(6px);
}
.lgl-hero-glow--soft {
  position: absolute; left: -120px; bottom: -160px; z-index: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,10,11,0.05) 0%, rgba(10,10,11,0) 70%);
}
.lgl-hero-shield {
  position: absolute; right: 48px; bottom: -36px; z-index: 0;
  width: 240px; height: auto; color: var(--c-red); opacity: 0.09;
}
@media (max-width: 991px) {
  .lgl-hero-shield { width: 170px; right: 10px; }
  .lgl-hero-grid { opacity: 0.04; }
}
@media (max-width: 575px) {
  .lgl-hero-shield { display: none; }
}
.lgl-hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--c-ink);
  line-height: 1.1;
  margin: 18px 0 16px;
}
.lgl-hero-lead {
  color: var(--c-steel);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 640px;
}
.lgl-hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--c-steel);
  margin-top: 22px; padding: 8px 16px;
  border: 1px solid var(--c-line-light);
  border-radius: 30px;
}
.lgl-hero-meta i { color: var(--c-red); }

/* ================================ LAYOUT ================================ */
.lgl-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

/* ================================ TOC ================================ */
.lgl-toc {
  position: sticky;
  top: 110px;
  display: flex; flex-direction: column; gap: 2px;
  border-left: 1px solid var(--c-line-light);
  padding-left: 20px;
}
.lgl-toc-label {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-red);
  margin-bottom: 14px;
}
.lgl-toc a {
  font-size: 0.88rem; color: var(--c-steel); text-decoration: none;
  padding: 9px 0; line-height: 1.4;
  transition: color 0.25s ease, padding-left 0.25s ease;
  border-bottom: 1px solid transparent;
}
.lgl-toc a:hover { color: var(--c-red); padding-left: 4px; }

/* ================================ CONTENT ================================ */
.lgl-content { max-width: 760px; }

.lgl-section { margin-bottom: 56px; scroll-margin-top: 120px; }
.lgl-section:last-child { margin-bottom: 0; }

.lgl-section h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  color: var(--c-ink);
  line-height: 1.2;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.lgl-section h2 .num {
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--c-red);
  border: 1px solid var(--c-line-light);
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.lgl-section p {
  color: var(--c-steel); font-size: 0.96rem; line-height: 1.8;
  margin: 0 0 16px;
}
.lgl-section p:last-child { margin-bottom: 0; }

.lgl-section ul {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.lgl-section ul li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.92rem; color: var(--c-ink); line-height: 1.6;
}
.lgl-section ul li i { color: var(--c-red); font-size: 0.82rem; margin-top: 4px; flex: none; }

/* ================================ COOKIE TYPES TABLE ================================ */
.lgl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line-light);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}
.lgl-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.lgl-table th, .lgl-table td {
  text-align: left; padding: 16px 18px; font-size: 0.86rem;
  border-bottom: 1px solid var(--c-line-light);
  vertical-align: top;
}
.lgl-table th {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--c-white);
  background: var(--c-ink);
}
.lgl-table tbody tr:last-child td { border-bottom: none; }
.lgl-table td { color: var(--c-steel); }
.lgl-table td strong { color: var(--c-ink); font-weight: 600; }
.lgl-table tbody tr:nth-child(even) { background: var(--c-off-white); }

/* ================================ CONTACT CARD ================================ */
.lgl-contact-card {
  background: var(--c-ink); padding: 36px 32px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  display: flex; flex-direction: column; gap: 10px;
}
.lgl-contact-card h4 { color: var(--c-white); font-size: 1rem; margin-bottom: 4px; }
.lgl-contact-card p { color: var(--c-steel); font-size: 0.9rem; margin: 0; }
.lgl-contact-card a { color: var(--c-white); text-decoration: none; border-bottom: 1px solid var(--c-red); }
.lgl-contact-card a:hover { color: var(--c-red); }

/* ================================ RESPONSIVE ================================ */
@media (max-width: 991px) {
  .lgl-layout { grid-template-columns: 1fr; gap: 36px; }
  .lgl-toc {
    position: static; border-left: none; border-bottom: 1px solid var(--c-line-light);
    flex-direction: row; flex-wrap: wrap; gap: 4px 18px; padding: 0 0 20px;
  }
  .lgl-toc-label { width: 100%; }
}
@media (max-width: 575px) {
  .lgl-hero { padding: 150px 0 48px; }
  .lgl-contact-card { padding: 28px 22px; }
}