/* ═══════════════════════════════════════════
   POLICY PAGES (Privacy, Terms, Cookie)
═══════════════════════════════════════════ */
.policy-layout {
  display:grid;
  grid-template-columns:260px 1fr;
  gap:2rem;
  align-items:start;
  padding-top:2rem;
}
@media(max-width:900px) {
  .policy-layout { grid-template-columns:1fr; }
}

/* ── Sidebar TOC ── */
.policy-toc {
  position:sticky; top:5.5rem;
  background:var(--bg-card); border:1px solid var(--border-default);
  border-radius:var(--r-xl); overflow:hidden;
}
.policy-toc-header {
  padding:0.9rem 1.1rem;
  border-bottom:1px solid var(--border-subtle);
  font-size:0.72rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.14em;
  color:var(--text-faint);
  display:flex; align-items:center; justify-content:space-between;
  cursor:pointer; user-select:none;
}
.policy-toc-header .toc-toggle-icon {
  font-size:0.8rem; color:var(--text-faint);
  transition:transform var(--t-fast);
}
.policy-toc.collapsed .toc-toggle-icon { transform:rotate(-90deg); }
.policy-toc-body { transition:max-height 0.3s ease; overflow:hidden; }
.policy-toc.collapsed .policy-toc-body { max-height:0 !important; }

.toc-section { border-bottom:1px solid var(--border-subtle); }
.toc-section:last-child { border-bottom:none; }

.toc-section-btn {
  width:100%; background:none; border:none;
  display:flex; align-items:center; justify-content:space-between;
  padding:0.7rem 1.1rem; cursor:pointer;
  transition:background var(--t-fast);
}
.toc-section-btn:hover { background:rgba(255,255,255,0.025); }
.toc-section-btn.open  { background:rgba(37,99,235,0.04); }
.toc-section-title {
  font-size:0.8rem; font-weight:600; color:var(--text-secondary);
  text-align:left; flex:1;
}
.toc-section-icon {
  font-size:0.7rem; color:var(--text-faint);
  transition:transform var(--t-fast); flex-shrink:0;
}
.toc-section-btn.open .toc-section-icon { transform:rotate(90deg); }

.toc-links {
  max-height:0; overflow:hidden;
  transition:max-height 0.28s ease;
  background:rgba(2,8,23,0.4);
}
.toc-links.open { max-height:600px; }
.toc-link {
  display:block; padding:0.45rem 1.1rem 0.45rem 1.5rem;
  font-size:0.78rem; color:var(--text-faint);
  transition:all var(--t-fast); border-left:2px solid transparent;
  text-decoration:none;
}
.toc-link:hover { color:var(--blue-300); background:rgba(37,99,235,0.05); }
.toc-link.active {
  color:var(--blue-300); border-left-color:var(--blue-500);
  background:rgba(37,99,235,0.06);
}

/* ── Policy Content ── */
.policy-content {
  background:var(--bg-card); border:1px solid var(--border-default);
  border-radius:var(--r-xl); padding:2.5rem;
}
@media(max-width:600px) { .policy-content { padding:1.5rem 1.2rem; } }

.policy-hero {
  margin-bottom:2.5rem; padding-bottom:2rem;
  border-bottom:1px solid var(--border-subtle);
}
.policy-hero h1 {
  font-size:clamp(1.5rem,2.5vw + 0.6rem,2rem);
  font-weight:900; color:var(--text-primary); margin-bottom:0.5rem;
}
.policy-meta {
  display:flex; flex-wrap:wrap; gap:0.8rem; align-items:center;
  font-size:0.78rem; color:var(--text-faint); margin-top:0.6rem;
}
.policy-meta span { display:flex; align-items:center; gap:0.3rem; }

.policy-section {
  margin-bottom:2.5rem; scroll-margin-top:6rem;
}
.policy-section h2 {
  font-size:1.1rem; font-weight:800; color:var(--text-primary);
  margin-bottom:0.8rem; padding-bottom:0.5rem;
  border-bottom:1px solid var(--border-subtle);
  display:flex; align-items:center; gap:0.5rem;
}
.policy-section h2 .section-num {
  display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:999px;
  background:rgba(37,99,235,0.12); border:1px solid rgba(37,99,235,0.22);
  font-size:0.7rem; font-weight:700; color:var(--blue-300); flex-shrink:0;
}
.policy-section h3 {
  font-size:0.95rem; font-weight:700; color:var(--text-secondary);
  margin:1.2rem 0 0.5rem;
}
.policy-section p {
  font-size:0.9rem; color:var(--text-muted); line-height:1.8;
  margin-bottom:0.8rem;
}
.policy-section ul,.policy-section ol {
  padding-left:1.2rem; margin-bottom:0.8rem;
  display:flex; flex-direction:column; gap:0.35rem;
}
.policy-section ul li { list-style:disc; }
.policy-section ol li { list-style:decimal; }
.policy-section li {
  font-size:0.9rem; color:var(--text-muted); line-height:1.7;
}
.policy-section a {
  color:var(--blue-300); text-decoration:underline;
  transition:color var(--t-fast);
}
.policy-section a:hover { color:var(--blue-400); }

.policy-highlight {
  background:rgba(37,99,235,0.06); border:1px solid rgba(37,99,235,0.18);
  border-left:3px solid var(--blue-500); border-radius:var(--r-md);
  padding:0.9rem 1.1rem; margin:1rem 0;
  font-size:0.875rem; color:var(--text-secondary); line-height:1.7;
}
.policy-warning {
  background:rgba(245,158,11,0.06); border:1px solid rgba(245,158,11,0.2);
  border-left:3px solid #f59e0b; border-radius:var(--r-md);
  padding:0.9rem 1.1rem; margin:1rem 0;
  font-size:0.875rem; color:var(--text-secondary); line-height:1.7;
}
.policy-table-wrap {
  overflow-x:auto; margin:1rem 0; border-radius:var(--r-md);
  border:1px solid var(--border-default);
}
.policy-table {
  width:100%; border-collapse:collapse;
  font-size:0.84rem; color:var(--text-secondary); min-width:400px;
}
.policy-table th {
  background:rgba(2,8,23,0.7); padding:0.65rem 0.9rem;
  font-size:0.74rem; font-weight:700; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--text-muted);
  border-bottom:1px solid var(--border-subtle); text-align:left;
}
.policy-table td {
  padding:0.6rem 0.9rem; border-bottom:1px solid var(--border-subtle);
  vertical-align:top;
}
.policy-table tr:last-child td { border-bottom:none; }
.policy-table tr:nth-child(even) { background:rgba(2,8,23,0.3); }

.policy-contact-box {
  background:rgba(2,8,23,0.7); border:1px solid var(--border-default);
  border-radius:var(--r-lg); padding:1.2rem 1.4rem; margin-top:1.5rem;
}
.policy-contact-box h3 {
  font-size:0.9rem; font-weight:700; color:var(--text-primary);
  margin-bottom:0.6rem;
}
.policy-contact-box p {
  font-size:0.85rem; color:var(--text-muted); margin-bottom:0.3rem;
}
.policy-contact-box a { color:var(--blue-300); }