/* ---------- LAYOUT ---------- */
.policy-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.policy-toc {
  order: -1;
  border: 1px solid var(--border-accent);
  background: var(--surface);
  border-radius: 14px;
  padding: 8px;
}
.policy-toc-title {
  padding: 10px 12px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
}
.policy-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.policy-toc a:hover { background: rgba(168, 85, 247, 0.08); color: var(--text); }
.policy-toc a svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }

.policy-article + .policy-article { margin-top: 64px; }

.policy-doc-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.policy-doc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-accent);
}
.policy-doc-icon svg { width: 20px; height: 20px; color: var(--accent); }
.policy-doc-header h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.3px;
  scroll-margin-top: 110px;
}
.policy-doc-header .policy-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.policy-body { max-width: 74ch; }
.policy-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.policy-heading {
  scroll-margin-top: 110px;
  color: var(--text);
  font-weight: 700;
  margin: 28px 0 12px;
}
.policy-heading--1 { font-size: 16px; }
.policy-heading--2 {
  font-size: 14px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.policy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}
.policy-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}
.policy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.policy-list strong { color: var(--text); font-weight: 600; }
.policy-body a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 2px; }
.policy-body a:hover { color: var(--accent); }

.policy-note {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  background: rgba(168, 85, 247, 0.08);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* bottom offset clears the floating Instagram button (assets/site.css
   .social-float): 52px circle + 20px its own offset + 12px gap = 84px. */
.policy-back-top {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.policy-back-top:hover { border-color: rgba(168, 85, 247, 0.4); }

@media (min-width: 900px) {
  .policy-layout { grid-template-columns: 240px 1fr; gap: 56px; }
  .policy-toc { order: 0; position: sticky; top: 104px; }
}
@media (min-width: 1024px) {
  .policy-back-top { right: 32px; bottom: 96px; }
}
