.legal-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 50px;
  align-items: start; 
}

.legal-update-box {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 30px;
  text-align: right; 
  border-bottom: 1px solid rgba(58, 39, 23, 0.05);
  padding-bottom: 10px;
}

.legal-sidebar {
  border-right: 1px solid rgba(58, 39, 23, 0.08);
  padding-right: 20px;
}

.sidebar-sticky-box {
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
  align-self: start;
}

.sidebar-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text);
}

.legal-toc {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.toc-link {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.toc-link:hover {
  color: var(--accent-strong);
  padding-left: 5px;
}

.legal-section { margin-bottom: 50px; }

.legal-content .section-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 15px;
}

.section-body {
  color: #56442d;
  line-height: 1.8;
  font-size: 15px;
}

html { scroll-behavior: smooth; }

@media (max-width: 900px) {
  .legal-wrapper { grid-template-columns: 1fr; padding: 24px; }
  .legal-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 30px; }
  .sidebar-sticky-box { position: static; }
}

.legal-menu{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}
.menu-link{padding:12px 15px;border-radius:8px;color:var(--text);font-size:14px;transition:all .2s;border:1px solid transparent;display:block;background:#fff}
.menu-link:hover{background:#fdfaf6;color:#c8861c;transform:translateX(5px)}
.menu-link.active{background:#fffdf9;border-color:#ead8bd;color:#c8861c;font-weight:700;box-shadow:0 2px 10px rgba(200,134,28,.05)}
