/* ── Cookies page styles ── */

/* ── Active nav ── */
.main-nav a.nav-active { color: var(--neon); position: relative; }
.main-nav a.nav-active::after { content:''; position:absolute; bottom:-6px; left:50%; transform:translateX(-50%); width:5px; height:5px; border-radius:50%; background:var(--neon); box-shadow:0 0 6px var(--neon); }

/* ── Breadcrumb ── */
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:.82rem; color:var(--text-soft); margin:0 0 28px; }
.breadcrumb a { color:var(--text-soft); text-decoration:none; transition:color .2s; }
.breadcrumb a:hover { color:var(--neon); }
.breadcrumb span.sep { opacity:.5; }
.breadcrumb span.cur { color:var(--neon); }

/* ── Hero ── */
.privacy-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(340px, 0.9fr);
  gap: 32px;
  align-items: center;
  margin: 0 0 50px;
}
.privacy-hero-content h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  margin: 0 0 16px;
  color: var(--text-main);
}
.privacy-hero-content h1 span { color: var(--neon); }
.privacy-hero-content p { color:var(--text-soft); font-size:1rem; line-height:1.72; max-width:480px; margin:0 0 22px; }
.privacy-updated {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .84rem; color: var(--text-soft);
  background: rgba(141,255,79,.06); border: 1px solid rgba(141,255,79,.18);
  border-radius: 8px; padding: 7px 14px;
}
.privacy-updated svg { width:15px; height:15px; stroke:var(--neon); fill:none; stroke-width:2; flex-shrink:0; }

/* ── Hero Visual (canvas + cookie icon) ── */
.privacy-hero-visual {
  position: relative; width: 100%; aspect-ratio: 4/3; max-height: 340px;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 40%, rgba(141,255,79,.10) 0%, rgba(8,16,10,.22) 60%, transparent 100%);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.privacy-hero-visual::after {
  content:''; position:absolute; inset:0; border-radius:24px;
  box-shadow: inset 0 0 80px 32px #030a04; pointer-events:none; z-index:3;
}
#cookieCanvas { position:absolute; inset:0; width:100%; height:100%; z-index:1; }
.cookie-hero-icon {
  position:absolute; z-index:4; display:flex; align-items:center; justify-content:center;
  animation: cookiePulse 3.2s ease-in-out infinite;
}
.cookie-hero-icon svg { width:96px; height:96px;
  filter: drop-shadow(0 0 20px rgba(141,255,79,.85)) drop-shadow(0 0 6px rgba(141,255,79,.45)); }
@keyframes cookiePulse {
  0%,100% { transform:scale(1); }
  50% { transform:scale(1.06); filter:drop-shadow(0 0 38px rgba(141,255,79,.95)); }
}

/* ── Page body layout ── */
.privacy-body {
  display: grid; grid-template-columns: 230px 1fr; gap: 32px;
  align-items: start; margin-bottom: 72px;
}

/* ── Sidebar ── */
.privacy-sidebar { position:sticky; top:24px; display:flex; flex-direction:column; gap:20px; }
.toc-card { background:rgba(8,18,10,.75); border:1px solid rgba(141,255,79,.15); border-radius:16px; padding:20px 18px; }
.toc-card-title { font-family:"Orbitron",sans-serif; font-size:.78rem; font-weight:700; letter-spacing:.1em; color:var(--text-main); margin:0 0 16px; }
.toc-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.toc-list li a { display:flex; align-items:center; gap:10px; color:var(--text-soft); text-decoration:none; font-size:.8rem; line-height:1.3; padding:3px 0; transition:color .2s; }
.toc-list li a:hover { color:var(--neon); }
.toc-list li a.toc-active { color:var(--neon); }
.toc-dot { width:16px; height:16px; border-radius:50%; border:2px solid rgba(141,255,79,.35); display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; transition:all .2s; }
.toc-list li a.toc-active .toc-dot { background:var(--neon); border-color:var(--neon); box-shadow:0 0 8px rgba(141,255,79,.7); }
.toc-dot-inner { width:5px; height:5px; border-radius:50%; background:#030a04; display:none; }
.toc-list li a.toc-active .toc-dot-inner { display:block; }

/* Choice card */
.trust-card { background:rgba(8,18,10,.75); border:1px solid rgba(141,255,79,.15); border-radius:16px; padding:22px 18px; display:flex; flex-direction:column; gap:12px; }
.trust-icon-wrap { width:52px; height:52px; border-radius:14px; border:1px solid rgba(141,255,79,.28); background:rgba(141,255,79,.07); display:flex; align-items:center; justify-content:center; }
.trust-icon-wrap svg { width:24px; height:24px; stroke:var(--neon); fill:none; stroke-width:2; }
.trust-card h4 { font-family:"Orbitron",sans-serif; font-size:.9rem; margin:0; color:var(--text-main); }
.trust-card p { color:var(--text-soft); font-size:.8rem; line-height:1.65; margin:0; }
.manage-pref-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px; height: 38px; border-radius: 9px;
  border: 1px solid rgba(141,255,79,.40); background: rgba(141,255,79,.06);
  color: var(--text-soft); font-size: .8rem; text-decoration: none;
  cursor: pointer; transition: all .2s; font-family: "Outfit", sans-serif;
}
.manage-pref-btn svg { width:14px; height:14px; stroke:var(--neon); fill:none; stroke-width:2; }
.manage-pref-btn:hover { border-color:var(--neon); color:var(--neon); background:rgba(141,255,79,.11); }

/* ── Content Sections (inline numbered heading style) ── */
.privacy-sections { display:flex; flex-direction:column; gap:0; }
.cp-section {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(141,255,79,.08);
  background: rgba(8,18,10,.50);
  border-radius: 0;
  transition: background .22s;
  position: relative;
}
.cp-section:first-child { border-radius: 18px 18px 0 0; border: 1px solid rgba(141,255,79,.10); border-bottom: 1px solid rgba(141,255,79,.08); }
.cp-section:last-child  { border-radius: 0 0 18px 18px; border: 1px solid rgba(141,255,79,.10); border-top: none; }
.cp-section:not(:first-child):not(:last-child) { border-left: 1px solid rgba(141,255,79,.10); border-right: 1px solid rgba(141,255,79,.10); }
.cp-section:hover { background: rgba(12,26,14,.68); }

/* Section with table gets its own bottom border and radius */
.cp-section.has-table { flex-direction: column; }
.cp-section.has-table .cp-head { display:flex; align-items:flex-start; gap:20px; width:100%; }

.cp-body { flex:1; min-width:0; }
.cp-body h3 {
  font-family: "Orbitron", sans-serif; font-size: 1.05rem;
  margin: 0 0 10px; color: var(--neon); line-height: 1.2;
}
.cp-body p { margin:0; color:var(--text-soft); font-size:.92rem; line-height:1.72; }

/* Hex icon */
.pp-icon {
  width: 54px; height: 54px; flex-shrink: 0;
  position: relative; display: flex; align-items: center; justify-content: center;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  background: rgba(141,255,79,.07);
  margin-top: 2px; overflow: visible;
}
.pp-icon::before {
  content: ""; position: absolute; inset: -4px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  border: 2px solid rgba(141,255,79,.55);
  box-shadow: 0 0 10px rgba(141,255,79,.4);
  background: transparent; pointer-events: none; z-index: 0;
}
.pp-icon svg { width:26px; height:26px; stroke:var(--neon); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; position:relative; z-index:1; }

/* ── Cookie Grid List (replaces table for responsiveness) ── */
.cookie-table-wrap {
  width: 100%; margin-top: 18px;
  border-radius: 12px;
  border: 1px solid rgba(141,255,79,.14);
  overflow: hidden;
}
.ct-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}
/* Column template: name | type | purpose | duration */
.ct-row {
  display: grid;
  grid-template-columns: 140px 120px 1fr 90px;
  gap: 0;
  border-bottom: 1px solid rgba(141,255,79,.07);
  transition: background .18s;
}
.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: rgba(141,255,79,.04); }
.ct-row.ct-head {
  background: rgba(141,255,79,.08);
  border-bottom: 1px solid rgba(141,255,79,.18);
}
.ct-cell {
  padding: 10px 16px;
  color: var(--text-soft);
  font-size: .86rem;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(141,255,79,.06);
}
.ct-cell:last-child { border-right: none; }
.ct-head .ct-cell {
  font-family: "Orbitron", sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-main);
  padding: 12px 16px;
}
.ct-name { font-family: monospace; color: var(--neon); font-size: .82rem; }
.ct-badge {
  display: inline-block;
  padding: 2px 9px; border-radius: 6px;
  font-size: .74rem; font-weight: 600;
  white-space: nowrap;
}
.ct-analytics  { background: rgba(141,255,79,.10); color: #a8ee72; border:1px solid rgba(141,255,79,.22); }
.ct-necessary  { background: rgba(79,180,255,.10); color: #8ecfff; border:1px solid rgba(79,180,255,.22); }
.ct-functional { background: rgba(255,200,79,.10); color: #ffd27a; border:1px solid rgba(255,200,79,.22); }
.ct-marketing  { background: rgba(255,100,100,.10); color: #ff9e9e; border:1px solid rgba(255,100,100,.22); }

/* Mobile: each row becomes a card, columns stack with labels */
@media (max-width: 640px) {
  .ct-row.ct-head { display: none; }
  .ct-row {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(141,255,79,.10);
    position: relative;
  }
  .ct-row:last-child { border-bottom: none; }
  .ct-cell {
    padding: 5px 14px;
    border-right: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: .84rem;
  }
  .ct-cell::before {
    content: attr(data-label);
    font-family: "Orbitron", sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .07em;
    color: rgba(141,255,79,.55);
    text-transform: uppercase;
  }
  /* Name + Type side-by-side, Purpose + Duration below */
  .ct-cell:nth-child(1) { grid-column: 1; }
  .ct-cell:nth-child(2) { grid-column: 2; }
  .ct-cell:nth-child(3) { grid-column: 1 / -1; }
  .ct-cell:nth-child(4) { grid-column: 1 / -1; }
}

/* ── Responsive ── */

@media (max-width: 1100px) {
  .privacy-hero { grid-template-columns: 1fr; margin: 0 0 36px; }
  .privacy-hero-content p { max-width: 100%; }
  .privacy-hero-visual { max-height: 280px; aspect-ratio: 16/9; }
}

@media (max-width: 900px) {
  .privacy-body { grid-template-columns: 1fr; gap: 24px; }
  .privacy-sidebar { position: static; display: flex; flex-direction: column; gap: 16px; }
  .toc-card { display: none; }
  .trust-card { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .trust-card .trust-icon-wrap { flex-shrink: 0; }
  .trust-card .manage-pref-btn { width: 100%; justify-content: center; }
}

@media (max-width: 760px) {
  .privacy-hero { margin: 0 0 28px; gap: 20px; }
  .privacy-hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .privacy-updated { font-size: .8rem; padding: 6px 12px; }
  .cp-section { padding: 18px 16px; gap: 14px; }
  .cp-body h3 { font-size: .95rem; }
  .cp-body p  { font-size: .88rem; }
  .ct-cell { font-size: .82rem; padding: 8px 12px; }
  .ct-head .ct-cell { padding: 10px 12px; }
  .ct-badge { font-size: .7rem; padding: 2px 7px; }
  .cp-section:first-child { border-radius: 14px 14px 0 0; }
  .cp-section:last-child  { border-radius: 0 0 14px 14px; }
}

@media (max-width: 600px) {
  .privacy-hero-visual { display: none; }
  .cp-section { padding: 14px 12px; gap: 10px; }
  .pp-icon { display: none; }
  .trust-card { flex-direction: column; }
  .cp-section.has-table .cp-head { gap: 10px; }
}

@media (max-width: 400px) {
  .privacy-hero-content h1 { font-size: 1.5rem; }
  .cp-body h3 { font-size: .88rem; }
  .cp-body p  { font-size: .84rem; }
  .breadcrumb { font-size: .76rem; }
  .manage-pref-btn { font-size: .76rem; height: 34px; }
}
