/* ===================================================
   ioMotiv – Legal Pages Stylesheet
   =================================================== */

.legal-hero {
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 60%, #0F2A4A 100%);
  padding: 120px 0 60px;
  color: #fff;
  text-align: center;
}
.legal-hero .legal-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.legal-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.legal-hero p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
}

/* Lang tabs inside hero */
.legal-lang-tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
.legal-lang-tabs button {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 700;
  padding: .4rem 1.2rem;
  cursor: pointer;
  transition: all .22s ease;
  font-family: inherit;
}
.legal-lang-tabs button.active,
.legal-lang-tabs button:hover {
  background: #4F46E5;
  border-color: #4F46E5;
  color: #fff;
}

/* Content area */
.legal-body {
  padding: 64px 0 80px;
  background: #F8FAFC;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sidebar TOC */
.legal-toc {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.5rem;
}
.legal-toc h3 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748B;
  margin-bottom: 1rem;
}
.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  counter-reset: toc;
}
.legal-toc ol li { counter-increment: toc; }
.legal-toc ol li a {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: #475569;
  text-decoration: none;
  line-height: 1.45;
  transition: color .2s;
  border-radius: 6px;
  padding: .25rem .4rem;
}
.legal-toc ol li a::before {
  content: counter(toc) ".";
  flex-shrink: 0;
  color: #4F46E5;
  font-weight: 700;
  font-size: .75rem;
  margin-top: .05rem;
}
.legal-toc ol li a:hover { color: #4F46E5; background: #EEF2FF; }
.legal-toc .toc-back {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: #4F46E5;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
}
.legal-toc .toc-back:hover { text-decoration: underline; }

/* Article */
.legal-article {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 2.5rem 3rem;
}

.legal-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 100px;
}
.legal-section:last-child { margin-bottom: 0; }

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.legal-section h2 .sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: linear-gradient(135deg,#4F46E5,#06B6D4);
  color: #fff;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.legal-section p {
  color: #475569;
  font-size: .93rem;
  line-height: 1.8;
  margin-bottom: .8rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol {
  padding-left: 1.25rem;
  color: #475569;
  font-size: .93rem;
  line-height: 1.8;
  margin-bottom: .8rem;
}
.legal-section ul li { list-style: disc; margin-bottom: .3rem; }
.legal-section ol li { list-style: decimal; margin-bottom: .3rem; }
.legal-section a { color: #4F46E5; text-decoration: underline; }
.legal-section a:hover { color: #3730A3; }

.legal-highlight {
  background: linear-gradient(135deg, #EEF2FF, #F0FDFF);
  border-left: 4px solid #4F46E5;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: .9rem;
  color: #334155;
}

.legal-contact-box {
  background: linear-gradient(135deg,#0F172A,#1E293B);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  color: #fff;
  margin-top: 1rem;
}
.legal-contact-box p { color: rgba(255,255,255,.75); margin-bottom: .4rem; }
.legal-contact-box strong { color: #06B6D4; }
.legal-contact-box a { color: #06B6D4; }

/* Date badge */
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #F1F5F9;
  border-radius: 50px;
  padding: .3rem .85rem;
  font-size: .78rem;
  color: #64748B;
  margin-bottom: 2rem;
  font-weight: 500;
}
.legal-updated i { color: #4F46E5; }

/* Divider */
.legal-divider {
  border: none;
  border-top: 1.5px solid #E2E8F0;
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 560px) {
  .legal-article { padding: 1.5rem 1.25rem; }
}

/* ===================================================
   COOKIE BANNER
   =================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.cookie-text { flex: 1; min-width: 220px; }
.cookie-text p {
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  line-height: 1.6;
  margin: 0;
}
.cookie-text a {
  color: #06B6D4;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: .55rem 1.3rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all .2s ease;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: linear-gradient(135deg,#4F46E5,#06B6D4);
  color: #fff;
}
.cookie-btn-accept:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(79,70,229,.4); }
.cookie-btn-reject {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.15);
}
.cookie-btn-reject:hover { background: rgba(255,255,255,.14); color: #fff; }
.cookie-btn-settings {
  background: transparent;
  color: rgba(255,255,255,.5);
  border: 1.5px solid rgba(255,255,255,.12);
}
.cookie-btn-settings:hover { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.3); }

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
